Bug: Intermittent toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-08-05 21:44:33+00:00
Resolved: 2022-09-01 12:05:11+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=386530733&repo=mozilla-beta
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/EMzEMuy9RzOI-luyaMs-mw/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-08-05T21:35:39.762Z] 21:35:39     INFO - TEST-START | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js
[task 2022-08-05T21:35:41.745Z] 21:35:41     INFO - TEST-INFO | started process screentopng
[task 2022-08-05T21:35:42.125Z] 21:35:42     INFO - TEST-INFO | screentopng: exit 0
[task 2022-08-05T21:35:42.127Z] 21:35:42     INFO - Buffered messages logged at 21:35:39
[task 2022-08-05T21:35:42.128Z] 21:35:42     INFO - Entering test bound test
[task 2022-08-05T21:35:42.135Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | pdf handler defaults to always-ask is false - 
[task 2022-08-05T21:35:42.136Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | pdf handler defaults to internal - 
[task 2022-08-05T21:35:42.137Z] 21:35:42     INFO - Pref action: 3
[task 2022-08-05T21:35:42.138Z] 21:35:42     INFO - Buffered messages logged at 21:35:40
[task 2022-08-05T21:35:42.139Z] 21:35:42     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-05T21:35:42.139Z] 21:35:42     INFO - Console message: [JavaScript Warning: "mozCurrentTransform is deprecated and will be removed in the future. Use CanvasRenderingContext2D.getTransform() or CanvasRenderingContext2D.setTransform() instead." {file: "resource://pdf.js/build/pdf.js" line: 5891}]
[task 2022-08-05T21:35:42.140Z] 21:35:42     INFO - Buffered messages logged at 21:35:41
[task 2022-08-05T21:35:42.141Z] 21:35:42     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-05T21:35:42.142Z] 21:35:42     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: screenshotsDisabled
[task 2022-08-05T21:35:42.143Z] 21:35:42     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: SCREENSHOT_BROWSER_COMPONENT
[task 2022-08-05T21:35:42.144Z] 21:35:42     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: REVEAL_PASSWORD_ENABLED
[task 2022-08-05T21:35:42.145Z] 21:35:42     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: TEXT_RECOGNITION_ENABLED
[task 2022-08-05T21:35:42.150Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | No visible pdf menuitem - true == true - 
[task 2022-08-05T21:35:42.153Z] 21:35:42     INFO - Buffered messages finished
[task 2022-08-05T21:35:42.156Z] 21:35:42     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | 2 == 1 - JS frame :: chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js :: test/< :: line 302
[task 2022-08-05T21:35:42.157Z] 21:35:42     INFO - Stack trace:
[task 2022-08-05T21:35:42.159Z] 21:35:42     INFO - chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:test/<:302
[task 2022-08-05T21:35:42.160Z] 21:35:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:35:42.164Z] 21:35:42     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | [] deepEqual ["context-pdfjs-undo","context-pdfjs-selectall"] - JS frame :: chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js :: assertMenuitems :: line 242
[task 2022-08-05T21:35:42.165Z] 21:35:42     INFO - Stack trace:
[task 2022-08-05T21:35:42.166Z] 21:35:42     INFO - chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:assertMenuitems:242
[task 2022-08-05T21:35:42.167Z] 21:35:42     INFO - chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:test/<:305
[task 2022-08-05T21:35:42.170Z] 21:35:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:35:42.172Z] 21:35:42     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | The FreeText editor must have been removed - 1 == 0 - JS frame :: chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js :: test/< :: line 314
[task 2022-08-05T21:35:42.173Z] 21:35:42     INFO - Stack trace:
[task 2022-08-05T21:35:42.174Z] 21:35:42     INFO - chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:test/<:314
[task 2022-08-05T21:35:42.175Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | ["context-pdfjs-redo"] deepEqual ["context-pdfjs-redo"] - 
[task 2022-08-05T21:35:42.180Z] 21:35:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:35:42.182Z] 21:35:42     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | The FreeText editor must have been added back - 2 == 1 - JS frame :: chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js :: test/< :: line 328
[task 2022-08-05T21:35:42.183Z] 21:35:42     INFO - Stack trace:
[task 2022-08-05T21:35:42.184Z] 21:35:42     INFO - chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:test/<:328
[task 2022-08-05T21:35:42.186Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | ["context-pdfjs-undo","context-pdfjs-cut","context-pdfjs-copy","context-pdfjs-delete","context-pdfjs-selectall"] deepEqual ["context-pdfjs-undo","context-pdfjs-cut","context-pdfjs-copy","context-pdfjs-delete","context-pdfjs-selectall"] - 
[task 2022-08-05T21:35:42.187Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | The FreeText editor must have been cut - 0 == 0 - 
[task 2022-08-05T21:35:42.188Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | ["context-pdfjs-undo","context-pdfjs-paste"] deepEqual ["context-pdfjs-undo","context-pdfjs-paste"] - 
[task 2022-08-05T21:35:42.193Z] 21:35:42     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | The FreeText editor must have been pasted - 1 == 1 - 
[task 2022-08-05T21:35:42.195Z] 21:35:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:35:42.196Z] 21:35:42     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | Uncaught exception in test - at chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:183 - TypeError: element is null
[task 2022-08-05T21:35:42.198Z] 21:35:42     INFO - Stack trace:
[task 2022-08-05T21:35:42.199Z] 21:35:42     INFO - @chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js:183:37
[task 2022-08-05T21:35:42.200Z] 21:35:42     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:142:12
[task 2022-08-05T21:35:42.201Z] 21:35:42     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1638:15
[task 2022-08-05T21:35:42.203Z] 21:35:42     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:296:21
[task 2022-08-05T21:35:42.204Z] 21:35:42     INFO - Leaving test bound test
[task 2022-08-05T21:35:42.205Z] 21:35:42     INFO - GECKO(23662) | MEMORY STAT | vsize 19730MB | residentFast 376MB | heapAllocated 262MB
[task 2022-08-05T21:35:42.207Z] 21:35:42     INFO - TEST-OK | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | took 2422ms
[task 2022-08-05T21:35:42.211Z] 21:35:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:35:42.214Z] 21:35:42     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js | Found an unexpected tab at the end of test run: http://example.com/browser/toolkit/components/pdfjs/test/file_pdfjs_test.pdf - 
[task 2022-08-05T21:41:52.207Z] 21:41:52     INFO - Buffered messages finished
[task 2022-08-05T21:41:52.209Z] 21:41:52    ERROR - TEST-UNEXPECTED-TIMEOUT | toolkit/components/pdfjs/test/browser_pdfjs_editing_contextmenu.js (finished) | application timed out after 370 seconds with no output
[task 2022-08-05T21:41:52.209Z] 21:41:52    ERROR - Force-terminating active process(es).
[task 2022-08-05T21:41:52.210Z] 21:41:52     INFO - Determining child pids from psutil...
[task 2022-08-05T21:41:52.246Z] 21:41:52     INFO - [23727, 23747, 23807, 23812, 23893, 23909, 23912, 23972]
[task 2022-08-05T21:41:52.247Z] 21:41:52     INFO - ==> process 23662 launched child process 23680
[task 2022-08-05T21:41:52.247Z] 21:41:52     INFO - ==> process 23662 launched child process 23727
[task 2022-08-05T21:41:52.247Z] 21:41:52     INFO - ==> process 23662 launched child process 23747
[task 2022-08-05T21:41:52.247Z] 21:41:52     INFO - ==> process 23662 launched child process 23807
[task 2022-08-05T21:41:52.247Z] 21:41:52     INFO - ==> process 23662 launched child process 23812
[task 2022-08-05T21:41:52.254Z] 21:41:52     INFO - ==> process 23662 launched child process 23846
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - ==> process 23662 launched child process 23893
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - ==> process 23662 launched child process 23909
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - ==> process 23662 launched child process 23912
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - ==> process 23662 launched child process 23972
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - Found child pids: {23680, 23747, 23812, 23909, 23972, 23846, 23912, 23727, 23893, 23807}
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - Failed to get child procs
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - Killing process: 23680
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - Can't trigger Breakpad, process no longer exists
[task 2022-08-05T21:41:52.255Z] 21:41:52     INFO - Killing process: 23747
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Killing process: 23812
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Killing process: 23909
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Killing process: 23972
[task 2022-08-05T21:41:52.256Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.257Z] 21:41:52     INFO - Killing process: 23846
[task 2022-08-05T21:41:52.257Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.257Z] 21:41:52     INFO - Can't trigger Breakpad, process no longer exists
[task 2022-08-05T21:41:52.257Z] 21:41:52     INFO - Killing process: 23912
[task 2022-08-05T21:41:52.257Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.257Z] 21:41:52     INFO - Killing process: 23727
[task 2022-08-05T21:41:52.258Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.259Z] 21:41:52     INFO - Killing process: 23893
[task 2022-08-05T21:41:52.260Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.260Z] 21:41:52     INFO - Killing process: 23807
[task 2022-08-05T21:41:52.262Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.266Z] 21:41:52     INFO - Killing process: 23662
[task 2022-08-05T21:41:52.268Z] 21:41:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-05T21:41:52.437Z] 21:41:52     INFO - psutil found pid 23662 dead
[task 2022-08-05T21:41:52.442Z] 21:41:52     INFO - TEST-INFO | Main app process: exit 0
```