Bug: Intermittent browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | single tracking bug
Status: NEW
Priority: P5
Created: 2025-02-13 15:05:20+00:00
Resolved: 2025-02-17 06:21:49+00:00

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

---
```
[task 2025-02-13T14:01:11.586Z] 14:01:11     INFO - TEST-START | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js
[task 2025-02-13T14:01:11.586Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 122a8f400 == 13 [pid = 1508] [id = 28]
[task 2025-02-13T14:01:11.586Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 77 (1383bc5c0) [pid = 1508] [serial = 91] [outer = 0]
[task 2025-02-13T14:01:11.587Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 78 (122a8fc00) [pid = 1508] [serial = 92] [outer = 1383bc5c0]
[task 2025-02-13T14:01:11.587Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1498
[task 2025-02-13T14:01:11.588Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508, Main Thread] WARNING: Please do not use mouseenter/leave events in chrome. They are slower than mouseover/out!: '!nsContentUtils::IsChromeDoc(window->GetExtantDoc())', file /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:461
[task 2025-02-13T14:01:11.588Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1302b7800 == 14 [pid = 1508] [id = 29]
[task 2025-02-13T14:01:11.588Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 79 (139194880) [pid = 1508] [serial = 93] [outer = 0]
[task 2025-02-13T14:01:11.589Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 80 (1302b4400) [pid = 1508] [serial = 94] [outer = 139194880]
[task 2025-02-13T14:01:11.589Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (120e55800) [pid = 1515] [serial = 12] [outer = 0] [url = about:privatebrowsing]
[task 2025-02-13T14:01:11.590Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 120e4f400 == 1 [pid = 1515] [id = 4] [url = about:newtab]
[task 2025-02-13T14:01:11.590Z] 14:01:11     INFO - GECKO(1508) | [Child 1510: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 123613800 == 2 [pid = 1510] [id = 9]
[task 2025-02-13T14:01:11.591Z] 14:01:11     INFO - GECKO(1508) | [Child 1510: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (119e43200) [pid = 1510] [serial = 27] [outer = 0]
[task 2025-02-13T14:01:11.591Z] 14:01:11     INFO - GECKO(1508) | [Child 1510: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (123613c00) [pid = 1510] [serial = 28] [outer = 119e43200]
[task 2025-02-13T14:01:11.591Z] 14:01:11     INFO - GECKO(1508) | [WARN  webrender::device::gl] Missing optimized shader source for gpu_cache_update
[task 2025-02-13T14:01:11.592Z] 14:01:11     INFO - GECKO(1508) | [Child 1515, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/base/GlobalTeardownObserver.cpp:51
[task 2025-02-13T14:01:11.592Z] 14:01:11     INFO - GECKO(1508) | [Child 1515, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/base/GlobalTeardownObserver.cpp:51
[task 2025-02-13T14:01:11.592Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (109b444c0) [pid = 1515] [serial = 13] [outer = 0] [url = about:newtab]
[task 2025-02-13T14:01:11.593Z] 14:01:11     INFO - GECKO(1508) | [WARN  webrender::device::gl] Missing optimized shader source for gpu_cache_update
[task 2025-02-13T14:01:11.593Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp:1663
[task 2025-02-13T14:01:11.593Z] 14:01:11     INFO - GECKO(1508) | 1739455248571	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2025-02-13T14:01:11.594Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:395
[task 2025-02-13T14:01:11.594Z] 14:01:11     INFO - GECKO(1508) | [Child 1510: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (123615000) [pid = 1510] [serial = 29] [outer = 119e43200]
[task 2025-02-13T14:01:11.595Z] 14:01:11     INFO - TEST-INFO | started process screencapture
[task 2025-02-13T14:01:11.640Z] 14:01:11     INFO - TEST-INFO | screencapture: exit 0
[task 2025-02-13T14:01:11.640Z] 14:01:11     INFO - Buffered messages logged at 14:00:48
[task 2025-02-13T14:01:11.640Z] 14:01:11     INFO - Entering setup bound 
[task 2025-02-13T14:01:11.641Z] 14:01:11     INFO - Leaving setup bound 
[task 2025-02-13T14:01:11.641Z] 14:01:11     INFO - Entering test bound test_sidebar_extension_context_menu
[task 2025-02-13T14:01:11.641Z] 14:01:11     INFO - Buffered messages finished
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | Sidebar is shown. - 
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - Stack trace:
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochikit/content/browser-test.js:test_ok:1592
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js:test_sidebar_extension_context_menu:13
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochikit/content/browser-test.js:handleTask:1139
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2025-02-13T14:01:11.643Z] 14:01:11     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-02-13T14:01:11.644Z] 14:01:11     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | Uncaught exception in test bound test_sidebar_extension_context_menu - at resource://testing-common/sinon-7.2.7.js:2096 - TypeError: Cannot stub non-existent own property manageExtension
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - Stack trace:
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - stub@resource://testing-common/sinon-7.2.7.js:2096:19
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - test_sidebar_extension_context_menu@chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js:15:28
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2025-02-13T14:01:11.645Z] 14:01:11     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-02-13T14:01:11.646Z] 14:01:11     INFO - Leaving test bound test_sidebar_extension_context_menu
[task 2025-02-13T14:01:11.646Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 79 (14437f6a0) [pid = 1508] [serial = 50] [outer = 0] [url = about:blank]
[task 2025-02-13T14:01:11.646Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 120e52400 == 2 [pid = 1515] [id = 5]
[task 2025-02-13T14:01:11.647Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (109b444c0) [pid = 1515] [serial = 16] [outer = 0]
[task 2025-02-13T14:01:11.648Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (120e52800) [pid = 1515] [serial = 17] [outer = 109b444c0]
[task 2025-02-13T14:01:11.648Z] 14:01:11     INFO - GECKO(1508) | [Child 1515: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (120e53c00) [pid = 1515] [serial = 18] [outer = 109b444c0]
[task 2025-02-13T14:01:11.649Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 78 (14437f880) [pid = 1508] [serial = 37] [outer = 0] [url = about:blank]
[task 2025-02-13T14:01:11.649Z] 14:01:11     INFO - GECKO(1508) | [Parent 1508: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 77 (14437f100) [pid = 1508] [serial = 40] [outer = 0] [url = about:addons]
[task 2025-02-13T14:01:11.649Z] 14:01:11     INFO - GECKO(1508) | MEMORY STAT | vsize 16531MB | residentFast 520MB | heapAllocated 259MB
[task 2025-02-13T14:01:11.650Z] 14:01:11     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | took 1308ms
[task 2025-02-13T14:01:11.650Z] 14:01:11     INFO - GECKO(1508) | [Child 1513: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 122e0f000 == 1 [pid = 1513] [id = 0]
[task 2025-02-13T14:01:11.651Z] 14:01:11     INFO - GECKO(1508) | [Child 1513: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (10d643200) [pid = 1513] [serial = 1] [outer = 0]
[task 2025-02-13T14:01:11.651Z] 14:01:11     INFO - GECKO(1508) | [Child 1513: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (122e12400) [pid = 1513] [serial = 2] [outer = 10d643200]
[task 2025-02-13T14:01:11.652Z] 14:01:11     INFO - checking window state
[task 2025-02-13T14:01:11.652Z] 14:01:11     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-02-13T14:01:11.653Z] 14:01:11     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | Found an unexpected browser window at the end of test run - 
[task 2025-02-13T14:01:11.653Z] 14:01:11     INFO - GECKO(1508) | must wait for focus
[task 2025-02-13T14:01:11.654Z] 14:01:11     INFO - GECKO(1508) | [Child 1515, Main Thread] WARNING: NS_ENSURE_TRUE(winInner) failed: file /builds/worker/checkouts/gecko/widget/nsBaseDragService.cpp:1265
[task 2025-02-13T14:01:11.654Z] 14:01:11     INFO - GECKO(1508) | [Child 1515, Main Thread] WARNING: NS_ENSURE_TRUE(widget) failed: file /builds/worker/checkouts/gecko/widget/nsDragServiceProxy.cpp:148
[task 2025-02-13T14:01:11.654Z] 14:01:11     INFO - TEST-START | browser/components/sidebar/tests/browser/browser_toolbar_sidebar_button.js
```