mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.09k stars 9.81k forks source link

Avoid dispatching an event in `pdfjsSandbox` when destruction has run #18293

Closed Snuffleupagus closed 1 week ago

Snuffleupagus commented 1 week ago

/botio integrationtest

moz-tools-bot commented 1 week ago

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/5c4f44293f7d09e/output.txt

moz-tools-bot commented 1 week ago

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/325b9c9bb19b5e2/output.txt

moz-tools-bot commented 1 week ago

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/325b9c9bb19b5e2/output.txt

Total script time: 0.53 mins

moz-tools-bot commented 1 week ago

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/5c4f44293f7d09e/output.txt

Total script time: 7.65 mins

Snuffleupagus commented 1 week ago

Based on http://54.241.84.105:8877/5c4f44293f7d09e/output.txt this unfortunately didn't help, hence the solution lies elsewhere (and not being able to reproduce the error locally makes things difficult to debug):

.TEST-PASSED | must let checkboxes with the same name behave like radio buttons
JavaScript warning: http://127.0.0.1:41223/build/generic/web/viewer.mjs, line 3071: Script terminated by timeout at:
dispatchEventInSandbox/<@http://127.0.0.1:41223/build/generic/web/viewer.mjs:3071:58
setTimeout handler*dispatchEventInSandbox@http://127.0.0.1:41223/build/generic/web/viewer.mjs:3071:17
async*#dispatchPageClose@http://127.0.0.1:41223/build/generic/web/viewer.mjs:7398:50
async*setDocument/<@http://127.0.0.1:41223/build/generic/web/viewer.mjs:7161:36
dispatch@http://127.0.0.1:41223/build/generic/web/viewer.mjs:1343:15
setDocument@http://127.0.0.1:41223/build/generic/web/viewer.mjs:10377:21
close@http://127.0.0.1:41223/build/generic/web/viewer.mjs:12682:22
@pptr:evaluate;file%3A%2F%2F%2Fhome%2Fubuntu%2Fpdfjs%2Fbotio-files-pdfjs%2Fprivate%2F5c4f44293f7d09e%2Ftest%2Fintegration%2Ftest_utils.mjs%3A82%3A18:5:22
@pptr:evaluate;file%3A%2F%2F%2Fhome%2Fubuntu%2Fpdfjs%2Fbotio-files-pdfjs%2Fprivate%2F5c4f44293f7d09e%2Ftest%2Fintegration%2Ftest_utils.mjs%3A82%3A18:9:3