Bug: Intermittent browser/components/search/test/browser/browser_contextmenu.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-04-25 14:50:52+00:00
Resolved: 2023-08-09 12:01:45+00:00

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

---
```
[task 2023-04-25T14:02:52.171Z] 14:02:52     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search in private window context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":null,"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}"} == true - 
[task 2023-04-25T14:02:52.171Z] 14:02:52     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Search in private window should be hidden - true == true - 
[task 2023-04-25T14:02:52.171Z] 14:02:52     INFO - Leaving test bound test_privateWindow
[task 2023-04-25T14:02:52.171Z] 14:02:52     INFO - Entering test bound test_normalWindow_sameDefaults
[task 2023-04-25T14:02:52.171Z] 14:02:52     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got context menu XUL - [object XULPopupElement] == true - 
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "https://example.com/browser/browser/components/search/test/browser/test_search.html" line: 0}]
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Console message: [JavaScript Error: "TypeError: doc is null" {file: "resource:///actors/ContextMenuChild.sys.mjs" line: 571}]
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Buffered messages finished
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Test timed out - 
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Extension left running at test shutdown - 
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Stack trace:
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:test_ok:1578
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/tests/SimpleTest/ExtensionTestUtils.js:ExtensionTestUtils.loadExtension/<:132
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:nextTest:697
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1434
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1374
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1116
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Extension left running at test shutdown - 
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - Stack trace:
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:test_ok:1578
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/tests/SimpleTest/ExtensionTestUtils.js:ExtensionTestUtils.loadExtension/<:132
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:nextTest:697
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1434
[task 2023-04-25T14:02:52.179Z] 14:02:52     INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1374
[task 2023-04-25T14:02:52.186Z] 14:02:52     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1116
[task 2023-04-25T14:02:52.186Z] 14:02:52     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-25T14:02:52.218Z] 14:02:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:52.218Z] 14:02:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Uncaught exception received from previously timed out test bound test_normalWindow_sameDefaults - popupshown listener on #contentAreaContextMenu not removed before the end of test
[task 2023-04-25T14:02:52.218Z] 14:02:52     INFO - Entering test bound test_privateWindow_no_separate_engine
[task 2023-04-25T14:02:52.585Z] 14:02:52     INFO - GECKO(4332) | 1682431372598	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2023-04-25T14:02:52.647Z] 14:02:52     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got context menu XUL - {"AUTOSCROLL_INTERVAL":25,"NOT_DRAGGING":0,"DRAG_OVER_BUTTON":-1,"DRAG_OVER_POPUP":1,"_draggingState":0,"_scrollTimer":0,"isRunningDelayedConnectedCallback":false,"hasConnected":true} == true - 
[task 2023-04-25T14:02:52.702Z] 14:02:52     INFO - GECKO(4332) | JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[task 2023-04-25T14:02:52.719Z] 14:02:52     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.sys.mjs" line: 60}]
[task 2023-04-25T14:02:52.727Z] 14:02:52     INFO - load@resource://gre/modules/XULStore.sys.mjs:60:15
[task 2023-04-25T14:02:52.727Z] 14:02:52     INFO - XULStore@resource://gre/modules/XULStore.sys.mjs:17:10
[task 2023-04-25T14:02:52.727Z] 14:02:52     INFO - 
[task 2023-04-25T14:02:52.768Z] 14:02:52     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "https://example.com/browser/browser/components/search/test/browser/test_search.html" line: 0}]
[task 2023-04-25T14:02:53.081Z] 14:02:53     INFO - checkContextMenu
[task 2023-04-25T14:02:53.081Z] 14:02:53     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":{".menu-iconic-text":null,".menu-text":{"_lastFormattedAccessKey":null},".menu-iconic-highlightable-text":null},"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}","usePrivate":true} == true - 
[task 2023-04-25T14:02:53.081Z] 14:02:53     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check context menu label - "Search mozSearch for �test%20search�" == "Search mozSearch for �test%20search�" - 
[task 2023-04-25T14:02:53.081Z] 14:02:53     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Check that search context menu item is enabled - false == false - 
[task 2023-04-25T14:02:53.316Z] 14:02:53     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "https://example.com/browser/browser/components/search/test/browser/mozsearch.sjs?test=test%2520search" line: 0}]
[task 2023-04-25T14:02:53.387Z] 14:02:53     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Ensure there were no errors loading the search page - true == true - 
[task 2023-04-25T14:02:53.387Z] 14:02:53     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Got search in private window context menu item - {"renderedOnce":true,"_accelTextIsDerived":true,"_ignoreAccelTextChange":true,"_inheritedElements":null,"initializedAttributeInheritance":true,"searchTerms":"test%20search","principal":{},"csp":"{\"csp-policies\":[]}"} == true - 
[task 2023-04-25T14:02:53.387Z] 14:02:53     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu.js | Search in private window should be hidden - true == true - 
[task 2023-04-25T14:02:53.426Z] 14:02:53     INFO - Leaving test bound test_privateWindow_no_separate_engine
[task 2023-04-25T14:02:53.426Z] 14:02:53     INFO - Entering test bound cleanup
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Uncaught exception received from previously timed out test bound cleanup - at resource://specialpowers/SpecialPowersParent.sys.mjs:1340 - TypeError: can't access property "shutdown", extension is undefined
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - Stack trace:
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - receiveMessage@resource://specialpowers/SpecialPowersParent.sys.mjs:1340:11
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - JSActor query*unload@resource://specialpowers/SpecialPowersChild.sys.mjs:2001:19
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - cleanup@chrome://mochitests/content/browser/browser/components/search/test/browser/browser_contextmenu.js:247:21
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1127:26
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1199:18
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1341:14
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1116:14
[task 2023-04-25T14:02:53.488Z] 14:02:53     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-04-25T14:02:57.816Z] 14:02:57     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | waiting for vsync to be disabled - timed out after 50 tries. - false == true - {"filename":"chrome://mochikit/content/browser-test.js","name":"ensureVsyncDisabled","sourceId":533,"lineNumber":604,"columnNumber":19,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":533,"lineNumber":763,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"timeoutFn","sourceId":533,"lineNumber":1434,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":533,"lineNumber":1374,"columnNumber":80,"sourceLine":"","asyncCause":"setTimeout handler","asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":533,"lineNumber":1116,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":561,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"setTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*timeoutFn@chrome://mochikit/content/browser-test.js:1434:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*nextTest@chrome://mochikit/content/browser-test.js:763:18\nasync*timeoutFn@chrome://mochikit/content/browser-test.js:1434:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"ensureVsyncDisabled@chrome://mochikit/content/browser-test.js:604:19\nasync*nextTest@chrome://mochikit/content/browser-test.js:763:18\nasync*timeoutFn@chrome://mochikit/content/browser-test.js:1434:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - Stack trace:
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:ensureVsyncDisabled:604
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:nextTest:763
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1434
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1374
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1116
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-25T14:02:57.824Z] 14:02:57     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | vsync remained enabled at the end of the test. Is there an animation still running? Consider talking to the performance team for tips to solve this. - false == true - {"filename":"chrome://mochikit/content/browser-test.js","name":"ensureVsyncDisabled","sourceId":533,"lineNumber":605,"columnNumber":19,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":533,"lineNumber":763,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"timeoutFn","sourceId":533,"lineNumber":1434,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":533,"lineNumber":1374,"columnNumber":80,"sourceLine":"","asyncCause":"setTimeout handler","asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":533,"lineNumber":1116,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":561,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"setTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*timeoutFn@chrome://mochikit/content/browser-test.js:1434:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*nextTest@chrome://mochikit/content/browser-test.js:763:18\nasync*timeoutFn@chrome://mochikit/content/browser-test.js:1434:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"ensureVsyncDisabled@chrome://mochikit/content/browser-test.js:605:19\nasync*nextTest@chrome://mochikit/content/browser-test.js:763:18\nasync*timeoutFn@chrome://mochikit/content/browser-test.js:1434:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1374:80\nnextTest/<@chrome://mochikit/content/browser-test.js:1116:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - Stack trace:
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:ensureVsyncDisabled:605
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:nextTest:763
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1434
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1374
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1116
[task 2023-04-25T14:02:57.832Z] 14:02:57     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-25T14:02:57.840Z] 14:02:57     INFO - GECKO(4332) | MEMORY STAT | vsize 1250MB | vsizeMaxContiguous 349MB | residentFast 364MB | heapAllocated 407MB
[task 2023-04-25T14:02:57.840Z] 14:02:57     INFO - TEST-OK | browser/components/search/test/browser/browser_contextmenu.js | took 50710ms
[task 2023-04-25T14:02:57.840Z] 14:02:57     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:57.840Z] 14:02:57     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Found a tab after previous test timed out: https://example.com/browser/browser/components/search/test/browser/test_search.html - 
[task 2023-04-25T14:02:57.871Z] 14:02:57     INFO - checking window state
[task 2023-04-25T14:02:57.871Z] 14:02:57     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-25T14:02:57.871Z] 14:02:57     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu.js | Found a browser window after previous test timed out - 
[task 2023-04-25T14:02:57.871Z] 14:02:57     INFO - GECKO(4332) | must wait for focus
[task 2023-04-25T14:02:57.941Z] 14:02:57     INFO - TEST-START | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js
```