Bug: Intermittent browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-05-20 05:58:19+00:00
Resolved: 2023-11-22 12:01:02+00:00

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

---
```
[task 2023-05-20T05:34:10.571Z] 05:34:10     INFO - TEST-START | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js
[task 2023-05-20T05:34:12.642Z] 05:34:12     INFO - GECKO(5544) | 1684560852651	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2023-05-20T05:34:14.036Z] 05:34:14     INFO - TEST-INFO | started process screenshot
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - TEST-INFO | screenshot: exit 0
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - Buffered messages logged at 05:34:10
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - Entering setup bound 
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - Extension loaded
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search provider extension should be running - "running" == "running" - 
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Extension ID of search provider should be set - "mozsearch@tests.mozilla.org" == true - 
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - Leaving setup bound 
[task 2023-05-20T05:34:14.205Z] 05:34:14     INFO - Entering test bound test_whereToOpenLink
[task 2023-05-20T05:34:14.205Z] 05:34:14     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-05-20T05:34:14.205Z] 05:34:14     INFO - Buffered messages logged at 05:34:11
[task 2023-05-20T05:34:14.205Z] 05:34:14     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-05-20T05:34:14.205Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search tab is opened in foreground (no modifiers) - 
[task 2023-05-20T05:34:14.205Z] 05:34:14     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-05-20T05:34:14.213Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search tab is opened in background (middle mouse) - 
[task 2023-05-20T05:34:14.213Z] 05:34:14     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-05-20T05:34:14.213Z] 05:34:14     INFO - Buffered messages logged at 05:34:12
[task 2023-05-20T05:34:14.213Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search tab is opened in background (Ctrl) - 
[task 2023-05-20T05:34:14.213Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search tab is opened in new window (Shift) - 
[task 2023-05-20T05:34:14.213Z] 05:34:14     INFO - flipping browser.search.context.loadInBackground and re-checking
[task 2023-05-20T05:34:14.213Z] 05:34:14     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-05-20T05:34:14.213Z] 05:34:14     INFO - Buffered messages logged at 05:34:13
[task 2023-05-20T05:34:14.213Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search tab is opened in background (no modifiers) - 
[task 2023-05-20T05:34:14.221Z] 05:34:14     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-05-20T05:34:14.221Z] 05:34:14     INFO - TEST-PASS | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Search tab is opened in foreground (middle mouse) - 
[task 2023-05-20T05:34:14.221Z] 05:34:14     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-05-20T05:34:14.221Z] 05:34:14     INFO - Buffered messages finished
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Uncaught exception in test bound test_whereToOpenLink - InvalidStateError: XULPopupElement.activateItem: Popup is not open
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - Stack trace:
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - openNewSearchTab@chrome://mochitests/content/browser/browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js:65:17
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - async*test_whereToOpenLink@chrome://mochitests/content/browser/browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js:164:21
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1133:26
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-05-20T05:34:14.221Z] 05:34:14     INFO - Leaving test bound test_whereToOpenLink
[task 2023-05-20T05:34:14.558Z] 05:34:14     INFO - GECKO(5544) | MEMORY STAT | vsize 1124MB | vsizeMaxContiguous 208MB | residentFast 348MB | heapAllocated 311MB
[task 2023-05-20T05:34:14.558Z] 05:34:14     INFO - TEST-OK | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | took 3994ms
[task 2023-05-20T05:34:14.558Z] 05:34:14     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-05-20T05:34:14.566Z] 05:34:14     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contextmenu_whereToOpenLink.js | Found an unexpected tab at the end of test run: https://example.com/browser/browser/components/search/test/browser/test_search.html - 
[task 2023-05-20T05:34:14.582Z] 05:34:14     INFO - checking window state
[task 2023-05-20T05:34:14.582Z] 05:34:14     INFO - GECKO(5544) | must wait for focus
[task 2023-05-20T05:34:14.715Z] 05:34:14     INFO - TEST-START | browser/components/search/test/browser/browser_defaultPrivate_nimbus.js
```