Closed Bug 2025752 Opened 8 months ago Closed 2 months ago

Intermittent browser/extensions/newtab/test/browser/browser_topsites_section.js | single tracking bug

Categories

(Firefox :: New Tab Page, defect, P5)

defect

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: florian)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [collect_confirm_failure])

Attachments

(3 external files)

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


[task 2026-03-24T12:08:39.342+00:00] 12:08:39     INFO - TEST-PASS | browser/extensions/newtab/test/browser/browser_topsites_section.js | topsites_edit - Should find a visible overlay - true == true
[task 2026-03-24T12:08:39.343+00:00] 12:08:39     INFO - Leaving test topsites_edit
[task 2026-03-24T12:08:39.344+00:00] 12:08:39     INFO - Entering test topsites_pin_unpin
[task 2026-03-24T12:08:39.344+00:00] 12:08:39     INFO - Buffered messages finished
[task 2026-03-24T12:08:39.344+00:00] 12:08:39     INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_topsites_section.js | topsites_pin_unpin - Test timed out
[task 2026-03-24T12:08:39.345+00:00] 12:08:39     INFO - TEST-UNEXPECTED-TIMEOUT | browser/extensions/newtab/test/browser/browser_topsites_section.js | Test timed out
[task 2026-03-24T12:08:39.345+00:00] 12:08:39     INFO - TEST-INFO took 90880ms
[task 2026-03-24T12:08:40.819+00:00] 12:08:40     INFO - ShutdownLeakPathFinder | Capturing CC graph to find leak paths for 1 leaked window(s) - this may take a moment...
[task 2026-03-24T12:09:02.169+00:00] 12:09:02     INFO - ShutdownLeakPathFinder | CC graph captured (292771 nodes). Searching for leak paths...
[task 2026-03-24T12:09:02.174+00:00] 12:09:02     INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-03-24T12:09:02.175+00:00] 12:09:02     INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_getScreenshots.js | Shutdown - leaked window until shutdown [url = chrome://global/content/backgroundPageThumbs.xhtml]
[task 2026-03-24T12:09:02.175+00:00] 12:09:02     INFO - Document normal (xhtml) chrome://global/content/backgroundPageThumbs.xhtml [root, 4 unknown ref(s)] @ 0x2aaa9c00
[task 2026-03-24T12:09:02.175+00:00] 12:09:02     INFO -   mScriptGlobalObject  nsGlobalWindowInner # 166 inner chrome://global/content/backgroundPageThumbs.xhtml @ 0x23e7d700
[task 2026-03-24T12:09:02.176+00:00] 12:09:02     INFO - GECKO(4640) | Completed ShutdownLeaks collections in process 4864
[task 2026-03-24T12:09:02.177+00:00] 12:09:02     INFO - TEST-START | Shutdown
[task 2026-03-24T12:09:02.178+00:00] 12:09:02     INFO - Browser Chrome Test Summary
[task 2026-03-24T12:09:02.178+00:00] 12:09:02     INFO - Passed:  153
[task 2026-03-24T12:09:02.179+00:00] 12:09:02     INFO - Failed:  1
[task 2026-03-24T12:09:02.179+00:00] 12:09:02     INFO - Todo:    0
[task 2026-03-24T12:09:02.179+00:00] 12:09:02     INFO - Mode:    e10s
[task 2026-03-24T12:09:02.180+00:00] 12:09:02     INFO - *** End BrowserChrome Test Results ***
[task 2026-03-24T12:09:02.251+00:00] 12:09:02     INFO - GECKO(4640) | 1774354142260	Marionette	TRACE	Received observer notification quit-application
[task 2026-03-24T12:09:02.262+00:00] 12:09:02     INFO - GECKO(4640) | 1774354142260	Marionette	TRACE	Application is shutting down with reason: "shutdown"
[task 2026-03-24T12:09:02.262+00:00] 12:09:02     INFO - GECKO(4640) | 1774354142261	Marionette	INFO	Stopped listening on port 2828
[task 2026-03-24T12:09:02.338+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL c0c5400 == 5 [pid = 4320] [id = 5] [url = moz-extension://9a310967-e580-48bf-b3e8-4eafebbc122d/_generated_background_page.html]
[task 2026-03-24T12:09:02.341+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL c093700 == 4 [pid = 4320] [id = 1] [url = moz-extension://c8fa5665-b4c8-4d50-bcca-3827c07925ed/_generated_background_page.html]
[task 2026-03-24T12:09:02.342+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL c095500 == 3 [pid = 4320] [id = 2] [url = moz-extension://0514561f-8d6d-4aa2-82ee-b1a41f09d1f6/_generated_background_page.html]
[task 2026-03-24T12:09:02.342+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL c0a5700 == 2 [pid = 4320] [id = 3] [url = moz-extension://f19d355d-cc5d-42ec-88e4-59d79ee73924/_generated_background_page.html]
[task 2026-03-24T12:09:02.343+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL c0a7500 == 1 [pid = 4320] [id = 4] [url = moz-extension://79ae11ca-33b3-464c-add0-e8ffa46658ae/_generated_background_page.html]
[task 2026-03-24T12:09:02.344+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL b2b9500 == 0 [pid = 4320] [id = 0] [url = moz-extension://e6a56aaa-8741-4e73-ac6d-9c91ccee60c2/_generated_background_page.html]
[task 2026-03-24T12:09:02.366+00:00] 12:09:02     INFO - GECKO(4640) | 1774354142369	Marionette	DEBUG	Marionette stopped listening
[task 2026-03-24T12:09:02.423+00:00] 12:09:02     INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-03-24T12:09:02.427+00:00] 12:09:02     INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_topsites_section.js | topsites_pin_unpin - Uncaught exception received from previously timed out test topsites_pin_unpin - Error: The window unloaded while we were waiting for the browser to load - this should never happen.
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - listener@resource://testing-common/BrowserTestUtils.sys.mjs:544:15
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - EventListener.handleEvent*browserLoaded/<@resource://testing-common/BrowserTestUtils.sys.mjs:559:27
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - browserLoaded@resource://testing-common/BrowserTestUtils.sys.mjs:509:12
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - waitForPreloaded@chrome://mochitests/content/browser/browser/extensions/newtab/test/browser/head.js:77:28
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - testTask@chrome://mochitests/content/browser/browser/extensions/newtab/test/browser/head.js:203:11
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1376:26
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1466:18
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1617:14
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1356:14
[task 2026-03-24T12:09:02.428+00:00] 12:09:02     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1060:13
[task 2026-03-24T12:09:02.429+00:00] 12:09:02     INFO - Entering test topsites_add
[task 2026-03-24T12:09:02.436+00:00] 12:09:02     INFO - GECKO(4640) | console.error: (new TypeError("can't access property \"fixupAndLoadURIString\", this.webNavigation is undefined", "chrome://global/content/elements/browser-custom-element.mjs", 921))
[task 2026-03-24T12:09:02.502+00:00] 12:09:02     INFO - GECKO(4640) | [Parent 4864: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 23e34700 == 4 [pid = 4864] [id = 2] [url = chrome://extensions/content/dummy.xhtml]
[task 2026-03-24T12:09:02.520+00:00] 12:09:02     INFO - GECKO(4640) | [Child 7836: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL c7e3a00 == 0 [pid = 7836] [id = 9] [url = about:blank]
[task 2026-03-24T12:09:02.528+00:00] 12:09:02     INFO - GECKO(4640) | [Child 7836: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (595f0c0) [pid = 7836] [serial = 19] [outer = 0] [url = about:blank]
[task 2026-03-24T12:09:02.528+00:00] 12:09:02     INFO - GECKO(4640) | [Child 7836, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.534+00:00] 12:09:02     INFO - GECKO(4640) | [Child 7836: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (c7e6100) [pid = 7836] [serial = 20] [outer = 0] [url = about:blank]
[task 2026-03-24T12:09:02.535+00:00] 12:09:02     INFO - GECKO(4640) | [Child 7836, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.624+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (525f480) [pid = 4320] [serial = 11] [outer = 0] [url = moz-extension://9a310967-e580-48bf-b3e8-4eafebbc122d/_generated_background_page.html]
[task 2026-03-24T12:09:02.626+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.626+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (525ee40) [pid = 4320] [serial = 3] [outer = 0] [url = moz-extension://c8fa5665-b4c8-4d50-bcca-3827c07925ed/_generated_background_page.html]
[task 2026-03-24T12:09:02.627+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.628+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (525ef80) [pid = 4320] [serial = 5] [outer = 0] [url = moz-extension://0514561f-8d6d-4aa2-82ee-b1a41f09d1f6/_generated_background_page.html]
[task 2026-03-24T12:09:02.628+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.629+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (525ed00) [pid = 4320] [serial = 7] [outer = 0] [url = moz-extension://f19d355d-cc5d-42ec-88e4-59d79ee73924/_generated_background_page.html]
[task 2026-03-24T12:09:02.630+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.630+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (525e800) [pid = 4320] [serial = 1] [outer = 0] [url = moz-extension://e6a56aaa-8741-4e73-ac6d-9c91ccee60c2/_generated_background_page.html]
[task 2026-03-24T12:09:02.631+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.632+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (525f0c0) [pid = 4320] [serial = 9] [outer = 0] [url = moz-extension://79ae11ca-33b3-464c-add0-e8ffa46658ae/_generated_background_page.html]
[task 2026-03-24T12:09:02.632+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.639+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (eb3a000) [pid = 4320] [serial = 14] [outer = 0] [url = moz-extension://c8fa5665-b4c8-4d50-bcca-3827c07925ed/_generated_background_page.html]
[task 2026-03-24T12:09:02.639+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
[task 2026-03-24T12:09:02.640+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (eb3c100) [pid = 4320] [serial = 15] [outer = 0] [url = moz-extension://0514561f-8d6d-4aa2-82ee-b1a41f09d1f6/_generated_background_page.html]
[task 2026-03-24T12:09:02.641+00:00] 12:09:02     INFO - GECKO(4640) | [Child 4320, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:231
<...>
[task 2026-03-24T12:09:12.630+00:00] 12:09:12     INFO - runtests.py | Running http tests: end. status: 0
[task 2026-03-24T12:09:12.630+00:00] 12:09:12     INFO - Stopping web server
[task 2026-03-24T12:09:12.631+00:00] 12:09:12     INFO - Server shut down.
[task 2026-03-24T12:09:12.632+00:00] 12:09:12     INFO - Web server killed.
[task 2026-03-24T12:09:12.632+00:00] 12:09:12     INFO - Stopping web socket server
[task 2026-03-24T12:09:12.633+00:00] 12:09:12     INFO - Stopping ssltunnel
[task 2026-03-24T12:09:12.634+00:00] 12:09:12     INFO - leakcheck | Processing log file C:\Users\task_177435174149694\AppData\Local\Temp\tmpx514wn4u.mozrunner\runtests_leaks.log for scope browser/extensions/newtab/test/browser/browser.toml
[task 2026-03-24T12:09:12.635+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | default process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.636+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | tab process: leak threshold set at 1000 bytes
[task 2026-03-24T12:09:12.636+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | gmplugin process: leak threshold set at 20000 bytes
[task 2026-03-24T12:09:12.637+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | gpu process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.637+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | vr process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.638+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | rdd process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.638+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | socket process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.638+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | forkserver process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.639+00:00] 12:09:12     INFO - TEST-INFO | leakcheck | utility process: leak threshold set at 0 bytes
[task 2026-03-24T12:09:12.640+00:00] 12:09:12     INFO - leakcheck | Processing leak log file C:\Users\task_177435174149694\AppData\Local\Temp\tmpx514wn4u.mozrunner\runtests_leaks.log
[task 2026-03-24T12:09:12.640+00:00] 12:09:12     INFO - TEST-PASS | leakcheck | default no leaks detected!
[task 2026-03-24T12:09:12.641+00:00] 12:09:12     INFO - leakcheck | Processing leak log file C:\Users\task_177435174149694\AppData\Local\Temp\tmpx514wn4u.mozrunner\runtests_leaks_gpu_pid5768.log
[task 2026-03-24T12:09:12.641+00:00] 12:09:12     INFO - TEST-PASS | leakcheck | gpu no leaks detected!

panel-list sets open synchronously in show(), deliberately so since bug
2010864, and only finishes opening two animation frames later. Waiting on the
attribute let these tests assert on aria-expanded and on focus before either
was set, and dispatch mouse events at a panel setAlign() had not moved off the
tile yet, so the click landed on the neighbouring tile.

Assignee: nobody → florian
Status: NEW → ASSIGNED

TopSiteAddButton renders its in-grid variant as .top-site-outer.add-button-tile
with no .context-menu-button, since "Add shortcut" has no context menu. These
selectors excluded .search-shortcut and .placeholder but not that tile, so
before a real top site had rendered the tile satisfied the wait above each of
them and the test went on to a null .context-menu-button.

Every tile renders its panel-list and all of its items up front, so
.top-sites panel-list panel-item enumerates every tile's menu in DOM order
and an index runs off the end of the first tile's list into the next tile's.
Both tests now wait for the tile of the site setTestTopSites configures and
take the menu item by its Fluent id.

Blocks: 2072711
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1c3d713169a4 https://hg.mozilla.org/integration/autoland/rev/51b6ae5c979f Wait on panel-list's shown and hidden events instead of its open attribute in browser_topsites_section.js, r=mconley.
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/81baafa5d451 https://hg.mozilla.org/integration/autoland/rev/6b9a7a91e0b2 Exclude the add-shortcut tile from browser_topsites_section.js's menu test selectors, r=mconley.
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9ce618227557 https://hg.mozilla.org/integration/autoland/rev/4c44ff58e6c4 Address the top site and the menu item by name in browser_topsites_section.js's edit and add tests, r=mconley.
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: