Bug: Intermittent browser/components/newtab/test/browser/browser_highlights_section.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-08-03 04:13:59+00:00
Resolved: 2024-10-28 12:05:19+00:00

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

---
```
[task 2023-08-03T03:00:12.206Z] 02:59:47     INFO - TEST-START | browser/components/newtab/test/browser/browser_highlights_section.js
[task 2023-08-03T03:00:50.646Z] 03:00:50     INFO - TEST-INFO | started process screenshot
[task 2023-08-03T03:00:50.787Z] 03:00:50     INFO - TEST-INFO | screenshot: exit 0
[task 2023-08-03T03:00:50.787Z] 03:00:50     INFO - Buffered messages logged at 02:59:47
[task 2023-08-03T03:00:50.788Z] 03:00:50     INFO - Entering test bound check_highlights_cards
[task 2023-08-03T03:00:50.788Z] 03:00:50     INFO - Buffered messages finished
[task 2023-08-03T03:00:50.789Z] 03:00:50     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_highlights_section.js | Test timed out - 
[task 2023-08-03T03:00:50.944Z] 03:00:50     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_highlights_section.js | there should be 2 highlights cards - 2 == 2 - 
[task 2023-08-03T03:00:50.952Z] 03:00:50     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_highlights_section.js | there should be 1 row * 4 - 2 = 2 highlights placeholder - 2 == 2 - 
[task 2023-08-03T03:00:50.953Z] 03:00:50     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_highlights_section.js | there should be 2 bookmark icons - 2 == 2 - 
[task 2023-08-03T03:00:51.117Z] 03:00:51     INFO - GECKO(5436) | MEMORY STAT | vsize 2112687MB | vsizeMaxContiguous 65041472MB | residentFast 377MB | heapAllocated 136MB
[task 2023-08-03T03:00:51.121Z] 03:00:51     INFO - TEST-OK | browser/components/newtab/test/browser/browser_highlights_section.js | took 63685ms
[task 2023-08-03T03:00:51.122Z] 03:00:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-08-03T03:00:51.123Z] 03:00:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_highlights_section.js | Found a tab after previous test timed out: about:newtab - 
[task 2023-08-03T03:00:51.148Z] 03:00:51     INFO - checking window state
[task 2023-08-03T03:00:51.164Z] 03:00:51     INFO - TEST-START | browser/components/newtab/test/browser/browser_multistage_spotlight.js
[task 2023-08-03T03:00:51.431Z] 03:00:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-08-03T03:00:51.434Z] 03:00:51     INFO - Buffered messages logged at 03:00:51
[task 2023-08-03T03:00:51.434Z] 03:00:51     INFO - Entering test bound test_specialAction
[task 2023-08-03T03:00:51.434Z] 03:00:51     INFO - Buffered messages finished
[task 2023-08-03T03:00:51.435Z] 03:00:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_highlights_section.js | Uncaught exception received from previously timed out test bound check_highlights_cards - at chrome://mochitests/content/browser/browser/components/newtab/test/browser/head.js:365 - TypeError: can't access property "removeTab", BrowserTestUtils is null
[task 2023-08-03T03:00:51.435Z] 03:00:51     INFO - Stack trace:
[task 2023-08-03T03:00:51.436Z] 03:00:51     INFO - testTask@chrome://mochitests/content/browser/browser/components/newtab/test/browser/head.js:365:7
[task 2023-08-03T03:00:51.436Z] 03:00:51     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-08-03T03:00:51.436Z] 03:00:51     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-08-03T03:00:51.436Z] 03:00:51     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-08-03T03:00:51.436Z] 03:00:51     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-08-03T03:00:51.436Z] 03:00:51     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-08-03T03:00:51.442Z] 03:00:51     INFO - GECKO(5436) | JavaScript error: chrome://mochikit/content/browser-test.js, line 1194: TypeError: can't access property "shift", currentScope.__tasks is null
[task 2023-08-03T03:00:51.444Z] 03:00:51     INFO - Console message: [JavaScript Error: "TypeError: can't access property "shift", currentScope.__tasks is null" {file: "chrome://mochikit/content/browser-test.js" line: 1194}]
[task 2023-08-03T03:00:51.444Z] 03:00:51     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1206:3
[task 2023-08-03T03:00:51.444Z] 03:00:51     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-08-03T03:00:51.444Z] 03:00:51     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-08-03T03:00:51.444Z] 03:00:51     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-08-03T03:00:51.444Z] 03:00:51     INFO - 
[task 2023-08-03T03:00:51.495Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.500Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:SET_WELCOME_MESSAGE_SEEN
[task 2023-08-03T03:00:51.501Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.501Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:GET_SELECTED_THEME
[task 2023-08-03T03:00:51.503Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.503Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:EVALUATE_SCREEN_TARGETING
[task 2023-08-03T03:00:51.506Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.506Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-08-03T03:00:51.507Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.507Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:ADD_SCREEN_IMPRESSION
[task 2023-08-03T03:00:51.517Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.518Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-08-03T03:00:51.587Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.595Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-08-03T03:00:51.595Z] 03:00:51     INFO - GECKO(5436) | console.debug: AboutWelcomeParent:
[task 2023-08-03T03:00:51.595Z] 03:00:51     INFO - GECKO(5436) |   Received content event: AWPage:SPECIAL_ACTION
[task 2023-08-03T03:00:51.595Z] 03:00:51     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_multistage_spotlight.js | Should be called by primary action - 1 == 1 - 
[task 2023-08-03T03:00:51.595Z] 03:00:51     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_multistage_spotlight.js | Should be called with button action - {"navigate":true,"type":"PIN_FIREFOX_TO_TASKBAR"} deepEqual {"navigate":true,"type":"PIN_FIREFOX_TO_TASKBAR"} - 
[task 2023-08-03T03:00:51.606Z] 03:00:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_multistage_spotlight.js | A promise chain failed to handle a rejection: can't access property "shift", currentScope.__tasks is null - stack: _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1194:13
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - Rejection date: Thu Aug 03 2023 03:00:51 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":575,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":541,"lineNumber":1159,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":541,"lineNumber":1203,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":541,"lineNumber":1345,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":541,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":566,"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:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1159:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1159:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - Stack trace:
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - chrome://mochikit/content/browser-test.js:handleTask:1159
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-08-03T03:00:51.612Z] 03:00:51     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-08-03T03:00:51.613Z] 03:00:51     INFO - Leaving test bound test_specialAction
```