Bug: Intermittent browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | single tracking bug
Status: RESOLVED
Priority: P2
Resolution: WORKSFORME
Created: 2024-05-15 21:10:32+00:00
Resolved: 2025-02-10 06:57:49+00:00

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

---
```
[task 2024-05-15T20:13:44.895Z] 20:13:44     INFO - TEST-START | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js
[task 2024-05-15T20:13:44.973Z] 20:13:44     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 149a27800 == 8 [pid = 2377] [id = 16]
[task 2024-05-15T20:13:44.973Z] 20:13:44     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 49 (1548a6020) [pid = 2377] [serial = 52] [outer = 0]
[task 2024-05-15T20:13:44.974Z] 20:13:44     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 50 (149a2a000) [pid = 2377] [serial = 53] [outer = 1548a6020]
[task 2024-05-15T20:13:44.979Z] 20:13:44     INFO - GECKO(2377) | [Parent 2377, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1494
[task 2024-05-15T20:13:45.091Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377, 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:437
[task 2024-05-15T20:13:45.130Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 153b76800 == 9 [pid = 2377] [id = 17]
[task 2024-05-15T20:13:45.131Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 51 (155308100) [pid = 2377] [serial = 54] [outer = 0]
[task 2024-05-15T20:13:45.131Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 52 (153b76c00) [pid = 2377] [serial = 55] [outer = 155308100]
[task 2024-05-15T20:13:45.170Z] 20:13:45     INFO - GECKO(2377) | [Child 2386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 116f18000 == 2 [pid = 2386] [id = 4]
[task 2024-05-15T20:13:45.171Z] 20:13:45     INFO - GECKO(2377) | [Child 2386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (10e1443e0) [pid = 2386] [serial = 11] [outer = 0]
[task 2024-05-15T20:13:45.171Z] 20:13:45     INFO - GECKO(2377) | [Child 2386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 9 (116f18c00) [pid = 2386] [serial = 12] [outer = 10e1443e0]
[task 2024-05-15T20:13:45.190Z] 20:13:45     INFO - GECKO(2377) | [WARN  webrender::device::gl] Missing optimized shader source for gpu_cache_update
[task 2024-05-15T20:13:45.315Z] 20:13:45     INFO - GECKO(2377) | [WARN  webrender::device::gl] Missing optimized shader source for gpu_cache_update
[task 2024-05-15T20:13:45.335Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp:1621
[task 2024-05-15T20:13:45.365Z] 20:13:45     INFO - GECKO(2377) | 1715804025364	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2024-05-15T20:13:45.379Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:395
[task 2024-05-15T20:13:45.390Z] 20:13:45     INFO - GECKO(2377) | [Child 2386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 10 (116f1a400) [pid = 2386] [serial = 13] [outer = 10e1443e0]
[task 2024-05-15T20:13:45.433Z] 20:13:45     INFO - TEST-INFO | started process screencapture
[task 2024-05-15T20:13:45.714Z] 20:13:45     INFO - TEST-INFO | screencapture: exit 0
[task 2024-05-15T20:13:45.714Z] 20:13:45     INFO - Buffered messages logged at 20:13:44
[task 2024-05-15T20:13:45.715Z] 20:13:45     INFO - Entering setup bound 
[task 2024-05-15T20:13:45.715Z] 20:13:45     INFO - Leaving setup bound 
[task 2024-05-15T20:13:45.716Z] 20:13:45     INFO - Entering test bound test_sidebar_extension_context_menu
[task 2024-05-15T20:13:45.716Z] 20:13:45     INFO - Buffered messages finished
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | Sidebar is shown. - 
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - Stack trace:
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - chrome://mochikit/content/browser-test.js:test_ok:1592
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js:test_sidebar_extension_context_menu:13
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - chrome://mochikit/content/browser-test.js:handleTask:1139
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-05-15T20:13:45.717Z] 20:13:45     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2024-05-15T20:13:45.718Z] 20:13:45     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-05-15T20:13:45.718Z] 20:13:45     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-05-15T20:13:45.719Z] 20:13:45     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 2024-05-15T20:13:45.719Z] 20:13:45     INFO - Stack trace:
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - stub@resource://testing-common/sinon-7.2.7.js:2096:19
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - test_sidebar_extension_context_menu@chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js:15:28
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-05-15T20:13:45.719Z] 20:13:45     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-05-15T20:13:45.720Z] 20:13:45     INFO - Leaving test bound test_sidebar_extension_context_menu
[task 2024-05-15T20:13:45.720Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 161958800 == 8 [pid = 2377] [id = 15] [url = about:blank]
[task 2024-05-15T20:13:45.721Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 51 (1495d6800) [pid = 2377] [serial = 9] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.721Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 50 (1bf636000) [pid = 2377] [serial = 32] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.722Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 49 (14891b000) [pid = 2377] [serial = 6] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.722Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 48 (16194cc00) [pid = 2377] [serial = 29] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.723Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 47 (153b74400) [pid = 2377] [serial = 37] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.723Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 46 (153329400) [pid = 2377] [serial = 36] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.724Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 45 (16194ac00) [pid = 2377] [serial = 30] [outer = 0] [url = chrome://browser/content/webext-panels.xhtml]
[task 2024-05-15T20:13:45.724Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 44 (15fa77800) [pid = 2377] [serial = 16] [outer = 0] [url = chrome://browser/content/sidebar/sidebar-customize.html]
[task 2024-05-15T20:13:45.725Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 43 (15a908800) [pid = 2377] [serial = 15] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.725Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 42 (153549000) [pid = 2377] [serial = 22] [outer = 0] [url = chrome://browser/content/webext-panels.xhtml]
[task 2024-05-15T20:13:45.726Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 41 (161be8400) [pid = 2377] [serial = 24] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.726Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 40 (14b254000) [pid = 2377] [serial = 21] [outer = 0] [url = chrome://browser/content/webext-panels.xhtml]
[task 2024-05-15T20:13:45.727Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 39 (153547c00) [pid = 2377] [serial = 23] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.727Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 38 (15b10b000) [pid = 2377] [serial = 20] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.728Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 37 (1c0ec8000) [pid = 2377] [serial = 35] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.728Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 36 (161952800) [pid = 2377] [serial = 34] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:45.729Z] 20:13:45     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 35 (14b0ea000) [pid = 2377] [serial = 25] [outer = 0] [url = chrome://browser/content/webext-panels.xhtml]
[task 2024-05-15T20:13:45.729Z] 20:13:45     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 12645a400 == 3 [pid = 2389] [id = 5]
[task 2024-05-15T20:13:45.730Z] 20:13:45     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (10a145880) [pid = 2389] [serial = 16] [outer = 0]
[task 2024-05-15T20:13:45.730Z] 20:13:45     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (12645ac00) [pid = 2389] [serial = 17] [outer = 10a145880]
[task 2024-05-15T20:13:46.010Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (12645c400) [pid = 2389] [serial = 18] [outer = 10a145880]
[task 2024-05-15T20:13:46.256Z] 20:13:46     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 34 (15aa495c0) [pid = 2377] [serial = 31] [outer = 0] [url = about:addons]
[task 2024-05-15T20:13:46.257Z] 20:13:46     INFO - GECKO(2377) | [Parent 2377: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 33 (15aa4a2e0) [pid = 2377] [serial = 41] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:46.547Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (124b2a800) [pid = 2389] [serial = 2] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:46.547Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (12645d400) [pid = 2389] [serial = 12] [outer = 0] [url = about:privatebrowsing]
[task 2024-05-15T20:13:46.547Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (12645c000) [pid = 2389] [serial = 11] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:46.548Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (12645b400) [pid = 2389] [serial = 9] [outer = 0] [url = about:newtab]
[task 2024-05-15T20:13:46.548Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (12645a800) [pid = 2389] [serial = 8] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:46.548Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (126459000) [pid = 2389] [serial = 6] [outer = 0] [url = about:newtab]
[task 2024-05-15T20:13:46.549Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (126458800) [pid = 2389] [serial = 5] [outer = 0] [url = about:blank]
[task 2024-05-15T20:13:46.549Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 124b2d400 == 2 [pid = 2389] [id = 4] [url = about:newtab]
[task 2024-05-15T20:13:46.645Z] 20:13:46     INFO - GECKO(2377) | [Child 2389, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/base/GlobalTeardownObserver.cpp:51
[task 2024-05-15T20:13:46.645Z] 20:13:46     INFO - GECKO(2377) | [Child 2389, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/base/GlobalTeardownObserver.cpp:51
[task 2024-05-15T20:13:46.647Z] 20:13:46     INFO - GECKO(2377) | [Child 2389: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (10a1456a0) [pid = 2389] [serial = 13] [outer = 0] [url = about:newtab]
[task 2024-05-15T20:13:46.782Z] 20:13:46     INFO - GECKO(2377) | MEMORY STAT | vsize 17539MB | residentFast 481MB | heapAllocated 210MB
[task 2024-05-15T20:13:46.783Z] 20:13:46     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_sidebar_context_menu.js | took 1888ms
```