Bug: Intermittent browser/components/shopping/tests/browser/browser_shopping_urlbar.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-09-24 00:48:33+00:00
Resolved: 2024-08-05 12:03:47+00:00

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

---
```
[task 2023-09-24T00:01:31.880Z] 00:01:31     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Shopping sidebar should be open in current window - 
[task 2023-09-24T00:01:31.880Z] 00:01:31     INFO - Buffered messages finished
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Uncaught exception in test bound test_button_toggles_all_windows - at resource://testing-common/BrowserTestUtils.sys.mjs:333 - TypeError: can't access property "nodeType", element is null
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - Stack trace:
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - is_visible@resource://testing-common/BrowserTestUtils.sys.mjs:333:7
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - test_button_toggles_all_windows@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_urlbar.js:198:22
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-09-24T00:01:31.882Z] 00:01:31     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2023-09-24T00:01:31.883Z] 00:01:31     INFO - Leaving test bound test_button_toggles_all_windows
[task 2023-09-24T00:01:31.883Z] 00:01:31     INFO - Entering test bound test_button_right_click_doesnt_affect_sidebars
[task 2023-09-24T00:01:31.885Z] 00:01:31     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/" line: 0}]
[task 2023-09-24T00:01:31.885Z] 00:01:31     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/product/B09TJGHL5F" line: 0}]
[task 2023-09-24T00:01:32.014Z] 00:01:32     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Shopping sidebar should be closed - 
[task 2023-09-24T00:01:32.031Z] 00:01:32     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/product/B09TJGHL5F" line: 0}]
[task 2023-09-24T00:01:32.042Z] 00:01:32     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Shopping sidebar should still be closed - 
[task 2023-09-24T00:01:32.061Z] 00:01:32     INFO - Leaving test bound test_button_right_click_doesnt_affect_sidebars
[task 2023-09-24T00:01:32.061Z] 00:01:32     INFO - Entering test bound test_button_right_click_doesnt_affect_sidebars
[task 2023-09-24T00:01:32.249Z] 00:01:32     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/" line: 0}]
[task 2023-09-24T00:01:32.391Z] 00:01:32     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | The shopping button is hidden on a non product page - 
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - Stack trace:
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:test_ok:1580
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_urlbar.js:test_button_right_click_doesnt_affect_sidebars/<:252
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:146
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_urlbar.js:test_button_right_click_doesnt_affect_sidebars:249
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:handleTask:1131
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-09-24T00:01:32.405Z] 00:01:32     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2023-09-24T00:01:32.423Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("Fetching OHTTP config from https://example.com/ohttp-config failed with error 404", "resource://gre/modules/OHTTPConfigManager.sys.mjs", 34))
[task 2023-09-24T00:01:32.431Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("OHTTP was configured for shopping but we couldn't get a valid config.", "chrome://global/content/shopping/ShoppingProduct.mjs", 388))
[task 2023-09-24T00:01:32.454Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("Fetching OHTTP config from https://example.com/ohttp-config failed with error 404", "resource://gre/modules/OHTTPConfigManager.sys.mjs", 34))
[task 2023-09-24T00:01:32.468Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("OHTTP was configured for shopping but we couldn't get a valid config.", "chrome://global/content/shopping/ShoppingProduct.mjs", 388))
[task 2023-09-24T00:01:32.468Z] 00:01:32     INFO - GECKO(532) | console.error: "Failed to fetch product analysis data" (new Error("request failed", "resource:///actors/ShoppingSidebarChild.sys.mjs", 260))
[task 2023-09-24T00:01:32.473Z] 00:01:32     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/product/B09TJGHL5F" line: 0}]
[task 2023-09-24T00:01:32.704Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("Fetching OHTTP config from https://example.com/ohttp-config failed with error 404", "resource://gre/modules/OHTTPConfigManager.sys.mjs", 34))
[task 2023-09-24T00:01:32.708Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("OHTTP was configured for shopping but we couldn't get a valid config.", "chrome://global/content/shopping/ShoppingProduct.mjs", 388))
[task 2023-09-24T00:01:32.773Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("Fetching OHTTP config from https://example.com/ohttp-config failed with error 404", "resource://gre/modules/OHTTPConfigManager.sys.mjs", 34))
[task 2023-09-24T00:01:32.773Z] 00:01:32     INFO - GECKO(532) | console.error: (new Error("OHTTP was configured for shopping but we couldn't get a valid config.", "chrome://global/content/shopping/ShoppingProduct.mjs", 388))
[task 2023-09-24T00:01:32.773Z] 00:01:32     INFO - GECKO(532) | console.error: "Failed to fetch product analysis data" (new Error("request failed", "resource:///actors/ShoppingSidebarChild.sys.mjs", 260))
[task 2023-09-24T00:01:32.799Z] 00:01:32     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-09-24T00:01:32.803Z] 00:01:32     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | The shopping button is still hidden after opening a background product tab - 
[task 2023-09-24T00:01:32.803Z] 00:01:32     INFO - Stack trace:
[task 2023-09-24T00:01:32.803Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:test_ok:1580
[task 2023-09-24T00:01:32.803Z] 00:01:32     INFO - chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_urlbar.js:test_button_right_click_doesnt_affect_sidebars/<:265
[task 2023-09-24T00:01:32.803Z] 00:01:32     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:146
[task 2023-09-24T00:01:32.803Z] 00:01:32     INFO - chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_urlbar.js:test_button_right_click_doesnt_affect_sidebars:249
[task 2023-09-24T00:01:32.804Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:handleTask:1131
[task 2023-09-24T00:01:32.804Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-09-24T00:01:32.804Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-09-24T00:01:32.804Z] 00:01:32     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-09-24T00:01:32.804Z] 00:01:32     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
```