Bug: Intermittent toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-08-28 15:10:02+00:00
Resolved: 2022-09-06 09:53:55+00:00

**Filed by:** csabou [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=388692127&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/T-1V_PTOS8i1w7f_nw-H7g/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-08-28T14:59:03.478Z] 14:59:03     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | pdf handler defaults to internal - 
[task 2022-08-28T14:59:03.479Z] 14:59:03     INFO - Pref action: 3
[task 2022-08-28T14:59:03.479Z] 14:59:03     INFO - Console message: [JavaScript Warning: "Partitioned cookie or storage access was provided to “http://example.com/browser/toolkit/components/pdfjs/test/file_pdfjs_test.pdf” because it is loaded in the third-party context and dynamic state partitioning is enabled."]
[task 2022-08-28T14:59:03.480Z] 14:59:03     INFO - Buffered messages logged at 14:57:35
[task 2022-08-28T14:59:03.480Z] 14:59:03     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | document must have a span containing 'and found references' - {} == true - 
[task 2022-08-28T14:59:03.481Z] 14:59:03     INFO - Console message: [JavaScript Error: "TypeError: doc is null" {file: "resource:///actors/ContextMenuChild.jsm" line: 571}]
[task 2022-08-28T14:59:03.481Z] 14:59:03     INFO - Buffered messages finished
[task 2022-08-28T14:59:03.482Z] 14:59:03     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | Test timed out - 
[task 2022-08-28T14:59:03.482Z] 14:59:03     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-28T14:59:03.483Z] 14:59:03     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | A promise chain failed to handle a rejection: popupshown listener on #contentAreaContextMenu not removed before the end of test - stack: (No stack available.)
[task 2022-08-28T14:59:03.483Z] 14:59:03     INFO - Rejection date: Sun Aug 28 2022 14:59:03 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 270
[task 2022-08-28T14:59:03.483Z] 14:59:03     INFO - Stack trace:
[task 2022-08-28T14:59:03.483Z] 14:59:03     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:270
[task 2022-08-28T14:59:03.484Z] 14:59:03     INFO - chrome://mochikit/content/browser-test.js:nextTest:663
[task 2022-08-28T14:59:03.484Z] 14:59:03     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1328
[task 2022-08-28T14:59:03.484Z] 14:59:03     INFO - GECKO(9985) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 119: uncaught exception: popupshown listener on #contentAreaContextMenu not removed before the end of test
[task 2022-08-28T14:59:03.485Z] 14:59:03     INFO - Console message: [JavaScript Error: "uncaught exception: popupshown listener on #contentAreaContextMenu not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 119}]
[task 2022-08-28T14:59:03.485Z] 14:59:03     INFO - GECKO(9985) | MEMORY STAT | vsize 8041MB | residentFast 388MB | heapAllocated 124MB
[task 2022-08-28T14:59:03.486Z] 14:59:03     INFO - TEST-OK | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | took 90054ms
[task 2022-08-28T14:59:03.486Z] 14:59:03     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-28T14:59:03.487Z] 14:59:03     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | Found a tab after previous test timed out: http://example.com/browser/toolkit/components/pdfjs/test/file_pdfjs_test.pdf - 
[task 2022-08-28T14:59:03.487Z] 14:59:03     INFO - GECKO(9985) | [Child 9992, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-08-28T14:59:03.488Z] 14:59:03     INFO - GECKO(9985) | [Child 9992, Main Thread] WARNING: HangMonitorChild::InterruptCallback: ExpectingShutdown, canceling content JS execution.
[task 2022-08-28T14:59:03.488Z] 14:59:03     INFO - GECKO(9985) | : file /builds/worker/checkouts/gecko/dom/ipc/ProcessHangMonitor.cpp:356
[task 2022-08-28T14:59:03.489Z] 14:59:03     INFO - GECKO(9985) | JavaScript warning: resource://pdf.js/web/viewer.js, line 6743: Script terminated by timeout at:
[task 2022-08-28T14:59:03.489Z] 14:59:03     INFO - GECKO(9985) | _updateInternalState@resource://pdf.js/web/viewer.js:6743:3
[task 2022-08-28T14:59:03.489Z] 14:59:03     INFO - GECKO(9985) | _pushOrReplaceState@resource://pdf.js/web/viewer.js:6629:10
[task 2022-08-28T14:59:03.490Z] 14:59:03     INFO - GECKO(9985) | _tryPushCurrentPosition@resource://pdf.js/web/viewer.js:6667:12
[task 2022-08-28T14:59:03.490Z] 14:59:03     INFO - GECKO(9985) | _pageHide@resource://pdf.js/web/viewer.js:6861:12
[task 2022-08-28T14:59:03.491Z] 14:59:03     INFO - GECKO(9985) | [Child 9989: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 112b44c00 == 1 [pid = 9989] [id = 1]
[task 2022-08-28T14:59:03.491Z] 14:59:03     INFO - GECKO(9985) | [Child 9989: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (10c89bd40) [pid = 9989] [serial = 3] [outer = 0]
[task 2022-08-28T14:59:03.492Z] 14:59:03     INFO - GECKO(9985) | [Child 9989: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (112b45000) [pid = 9989] [serial = 4] [outer = 10c89bd40]
[task 2022-08-28T14:59:03.492Z] 14:59:03     INFO - GECKO(9985) | [Child 9987, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-08-28T14:59:03.492Z] 14:59:03     INFO - checking window state
[task 2022-08-28T14:59:03.493Z] 14:59:03     INFO - TEST-START | toolkit/components/pdfjs/test/browser_pdfjs_editing_telemetry.js
```