Bug: Intermittent browser/components/shopping/tests/browser/browser_shopping_settings.js | single tracking bug
Status: ASSIGNED
Priority: P5
Created: 2024-01-30 18:05:07+00:00
Resolved: 2025-02-24 06:18:06+00:00

**Filed by:** ctuns [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=445208611&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FKdKEx6mQZWFqElF-b-GpQ/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FKdKEx6mQZWFqElF-b-GpQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2024-01-30T17:42:34.214Z] 17:42:34     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_settings.js | ads userEnabled pref should be false - true == true - 
[task 2024-01-30T17:42:34.215Z] 17:42:34     INFO - Leaving test bound test_settings_toggle_ad_and_multiple_tabs
[task 2024-01-30T17:42:34.219Z] 17:42:34     INFO - Entering test bound test_shopping_settings_experiment_auto_open_disabled
[task 2024-01-30T17:42:34.221Z] 17:42:34     INFO - Console message: [JavaScript Error: "TypeError: can't access property "length", recommendationData is null" {file: "resource:///actors/ShoppingSidebarChild.sys.mjs" line: 458}]
[task 2024-01-30T17:42:34.221Z] 17:42:34     INFO - Console message: [JavaScript Error: "TypeError: can't access property "length", recommendationData is null" {file: "resource:///actors/ShoppingSidebarChild.sys.mjs" line: 458}]
[task 2024-01-30T17:42:34.223Z] 17:42:34     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/Some-Product/dp/ABCDEFG123" line: 0}]
[task 2024-01-30T17:42:34.224Z] 17:42:34     INFO - Buffered messages finished
[task 2024-01-30T17:42:34.230Z] 17:42:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_settings.js | Uncaught exception in test bound test_shopping_settings_experiment_auto_open_disabled - at chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13 - TypeError: can't access property "querySelector", sidebar is null
[task 2024-01-30T17:42:34.230Z] 17:42:34     INFO - Stack trace:
[task 2024-01-30T17:42:34.230Z] 17:42:34     INFO - promiseSidebarUpdated@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13:17
[task 2024-01-30T17:42:34.230Z] 17:42:34     INFO - test_shopping_settings_experiment_auto_open_disabled/<@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:323:13
[task 2024-01-30T17:42:34.230Z] 17:42:34     INFO - withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2024-01-30T17:42:34.230Z] 17:42:34     INFO - async*test_shopping_settings_experiment_auto_open_disabled@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:314:26
[task 2024-01-30T17:42:34.231Z] 17:42:34     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-01-30T17:42:34.231Z] 17:42:34     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-01-30T17:42:34.231Z] 17:42:34     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-01-30T17:42:34.231Z] 17:42:34     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-01-30T17:42:34.231Z] 17:42:34     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-01-30T17:42:34.233Z] 17:42:34     INFO - Leaving test bound test_shopping_settings_experiment_auto_open_disabled
[task 2024-01-30T17:42:34.235Z] 17:42:34     INFO - Entering test bound test_shopping_settings_experiment_auto_open_enabled_with_ads
[task 2024-01-30T17:42:34.239Z] 17:42:34     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/Some-Product/dp/ABCDEFG123" line: 0}]
[task 2024-01-30T17:42:34.240Z] 17:42:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_settings.js | Uncaught exception in test bound test_shopping_settings_experiment_auto_open_enabled_with_ads - at chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13 - TypeError: can't access property "querySelector", sidebar is null
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - Stack trace:
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - promiseSidebarUpdated@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13:17
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - test_shopping_settings_experiment_auto_open_enabled_with_ads/<@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:402:15
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - async*test_shopping_settings_experiment_auto_open_enabled_with_ads@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:393:28
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-01-30T17:42:34.244Z] 17:42:34     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-01-30T17:42:34.245Z] 17:42:34     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-01-30T17:42:34.245Z] 17:42:34     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-01-30T17:42:34.245Z] 17:42:34     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-01-30T17:42:34.247Z] 17:42:34     INFO - Leaving test bound test_shopping_settings_experiment_auto_open_enabled_with_ads
[task 2024-01-30T17:42:34.248Z] 17:42:34     INFO - Entering test bound test_shopping_settings_experiment_auto_open_enabled_no_ads
[task 2024-01-30T17:42:34.251Z] 17:42:34     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/Some-Product/dp/ABCDEFG123" line: 0}]
[task 2024-01-30T17:42:34.378Z] 17:42:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_settings.js | Uncaught exception in test bound test_shopping_settings_experiment_auto_open_enabled_no_ads - at chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13 - TypeError: can't access property "querySelector", sidebar is null
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - Stack trace:
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - promiseSidebarUpdated@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13:17
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - test_shopping_settings_experiment_auto_open_enabled_no_ads/<@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:488:15
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - async*test_shopping_settings_experiment_auto_open_enabled_no_ads@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:479:28
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-01-30T17:42:34.379Z] 17:42:34     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-01-30T17:42:34.381Z] 17:42:34     INFO - Leaving test bound test_shopping_settings_experiment_auto_open_enabled_no_ads
[task 2024-01-30T17:42:34.382Z] 17:42:34     INFO - Entering test bound test_settings_auto_open_toggle
[task 2024-01-30T17:42:34.666Z] 17:42:34     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/Some-Product/dp/ABCDEFG123" line: 0}]
[task 2024-01-30T17:42:34.760Z] 17:42:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-01-30T17:42:34.760Z] 17:42:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_settings.js | Uncaught exception in test bound test_settings_auto_open_toggle - at chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13 - TypeError: can't access property "querySelector", sidebar is null
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - Stack trace:
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - promiseSidebarUpdated@chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/head.js:13:17
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - test_settings_auto_open_toggle@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_shopping_settings.js:572:9
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-01-30T17:42:34.761Z] 17:42:34     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-01-30T17:42:34.767Z] 17:42:34     INFO - Leaving test bound test_settings_auto_open_toggle
[task 2024-01-30T17:42:35.178Z] 17:42:35     INFO - GECKO(1353) | MEMORY STAT | vsize 11527MB | residentFast 466MB | heapAllocated 228MB
[task 2024-01-30T17:42:35.179Z] 17:42:35     INFO - TEST-OK | browser/components/shopping/tests/browser/browser_shopping_settings.js | took 5027ms
[task 2024-01-30T17:42:35.181Z] 17:42:35     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-01-30T17:42:35.181Z] 17:42:35     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_settings.js | Found an unexpected tab at the end of test run: https://example.com/Some-Product/dp/ABCDEFG123 - 
[task 2024-01-30T17:42:35.218Z] 17:42:35     INFO - checking window state
[task 2024-01-30T17:42:35.242Z] 17:42:35     INFO - GECKO(1353) | Completed ShutdownLeaks collections in process 1353
[task 2024-01-30T17:42:35.244Z] 17:42:35     INFO - TEST-START | Shutdown
```