Bug: Intermittent browser/components/sidebar/tests/browser/browser_toolbar_sidebar_button.js | single tracking bug
Status: REOPENED
Priority: P5
Created: 2024-05-24 13:31:55+00:00
Resolved: 2025-03-04 14:43:24+00:00

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

---
```
[task 2024-05-24T12:19:36.864Z] 12:19:36     INFO - TEST-PASS | browser/components/sidebar/tests/browser/browser_toolbar_sidebar_button.js | Should have button in new window - 
[task 2024-05-24T12:19:36.864Z] 12:19:36     INFO - Console message: [JavaScript Error: "NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIObserverService.removeObserver]" {file: "chrome://browser/content/sidebar/browser-sidebar.js" line: 232}]
[task 2024-05-24T12:19:36.865Z] 12:19:36     INFO - uninit@chrome://browser/content/sidebar/browser-sidebar.js:232:18
[task 2024-05-24T12:19:36.866Z] 12:19:36     INFO - onUnload@chrome://browser/content/browser-init.js:1024:23
[task 2024-05-24T12:19:36.867Z] 12:19:36     INFO - EventHandlerNonNull*@chrome://browser/content/browser.xhtml:127:43
[task 2024-05-24T12:19:36.867Z] 12:19:36     INFO - 
[task 2024-05-24T12:19:36.868Z] 12:19:36     INFO - Console message: [JavaScript Warning: "Loading failed for the module with source “chrome://global/content/elements/moz-button.mjs”." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-05-24T12:19:36.869Z] 12:19:36     INFO - Buffered messages finished
[task 2024-05-24T12:19:36.870Z] 12:19:36     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_toolbar_sidebar_button.js | A promise chain failed to handle a rejection: error loading dynamically imported module: chrome://browser/content/sidebar/sidebar-main.mjs - stack: init@chrome://browser/content/sidebar/browser-sidebar.js:184:7
[task 2024-05-24T12:19:36.874Z] 12:19:36     INFO - async*onLoad@chrome://browser/content/browser-init.js:216:23
[task 2024-05-24T12:19:36.874Z] 12:19:36     INFO - EventHandlerNonNull*@chrome://browser/content/browser.xhtml:126:39
[task 2024-05-24T12:19:36.874Z] 12:19:36     INFO - Rejection date: Fri May 24 2024 12:19:36 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":612,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":577,"lineNumber":1167,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":577,"lineNumber":1211,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":577,"lineNumber":1353,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":577,"lineNumber":1128,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":603,"lineNumber":1058,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1167:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1167:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - Stack trace:
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - chrome://mochikit/content/browser-test.js:handleTask:1167
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2024-05-24T12:19:36.875Z] 12:19:36     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-05-24T12:19:36.876Z] 12:19:36     INFO - Leaving test bound test_toolbar_sidebar_button
[task 2024-05-24T12:19:36.876Z] 12:19:36     INFO - Console message: [JavaScript Error: "TypeError: error loading dynamically imported module: chrome://browser/content/sidebar/sidebar-main.mjs"]
[task 2024-05-24T12:19:37.080Z] 12:19:37     INFO - GECKO(22607) | MEMORY STAT | vsize 12002MB | residentFast 577MB | heapAllocated 304MB
[task 2024-05-24T12:19:37.082Z] 12:19:37     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_toolbar_sidebar_button.js | took 1059ms
```