Closed Bug 1990703 Opened 1 year ago Closed 1 year ago

High frequency [tier 2] a11y browser/modules/test/browser/browser_ProcessHangNotifications.js | uncaught exception - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 | single tracking bug

Categories

(Firefox :: General, defect, P5)

defect

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox143 --- unaffected
firefox144 --- unaffected
firefox145 --- wontfix
firefox146 --- fixed

People

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

References

(Regression)

Details

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

Attachments

(1 external file)

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


[task 2025-09-24T22:53:08.526+00:00] 22:53:08     INFO - TEST-START | browser/modules/test/browser/browser_ProcessHangNotifications.js
[task 2025-09-24T22:53:08.596+00:00] 22:53:08     INFO - TEST-INFO | started process screentopng
[task 2025-09-24T22:53:08.799+00:00] 22:53:08     INFO - TEST-INFO | screentopng: exit 0
[task 2025-09-24T22:53:08.800+00:00] 22:53:08     INFO - Buffered messages logged at 22:53:08
[task 2025-09-24T22:53:08.800+00:00] 22:53:08     INFO - Entering setup bound 
[task 2025-09-24T22:53:08.801+00:00] 22:53:08     INFO - Leaving setup bound 
[task 2025-09-24T22:53:08.801+00:00] 22:53:08     INFO - Entering test bound terminateScriptTest
[task 2025-09-24T22:53:08.801+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Notification Displayed. - 
[task 2025-09-24T22:53:08.802+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | proper number of buttons - 
[task 2025-09-24T22:53:08.803+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Clicking 'Stop' should have terminated the script. - 
[task 2025-09-24T22:53:08.803+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded the correct number of events. - 
[task 2025-09-24T22:53:08.804+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | User aborted. - 
[task 2025-09-24T22:53:08.805+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had some uptime. - 24.62431999999899 > 0 - 
[task 2025-09-24T22:53:08.805+00:00] 22:53:08     INFO - Leaving test bound terminateScriptTest
[task 2025-09-24T22:53:08.805+00:00] 22:53:08     INFO - Entering test bound waitForScriptTest
[task 2025-09-24T22:53:08.805+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Notification Displayed. - 
[task 2025-09-24T22:53:08.806+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | proper number of buttons - 
[task 2025-09-24T22:53:08.806+00:00] 22:53:08     INFO - Buffered messages finished
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - TEST-UNEXPECTED-FAIL | browser/modules/test/browser/browser_ProcessHangNotifications.js | uncaught exception - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAccessible.DOMNode] at isKeyboardFocusable@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:760:18
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - assertFocusable@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:845:8
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - assertCanBeClicked@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:1221:22
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - runIfA11YChecks/this.AccessibilityUtils@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:1188:40
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - handleEvent@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:1307:12
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - click@chrome://global/content/elements/moz-button.mjs:199:19
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - waitForScriptTest@chrome://mochitests/content/browser/browser/modules/test/browser/browser_ProcessHangNotifications.js:197:48
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1252:26
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1341:18
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1490:14
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1232:14
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - 
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - Stack trace:
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2059
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - chrome://global/content/elements/moz-button.mjs:click:199
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - chrome://mochitests/content/browser/browser/modules/test/browser/browser_ProcessHangNotifications.js:waitForScriptTest:197
[task 2025-09-24T22:53:08.810+00:00] 22:53:08     INFO - chrome://mochikit/content/browser-test.js:handleTask:1252
[task 2025-09-24T22:53:08.811+00:00] 22:53:08     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1341
[task 2025-09-24T22:53:08.811+00:00] 22:53:08     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1490
[task 2025-09-24T22:53:08.811+00:00] 22:53:08     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1232
[task 2025-09-24T22:53:08.811+00:00] 22:53:08     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-09-24T22:53:08.811+00:00] 22:53:08     INFO - GECKO(61105) | JavaScript error: chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js, line 760: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAccessible.DOMNode]
[task 2025-09-24T22:53:08.812+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | no notification should be visible - 
[task 2025-09-24T22:53:08.812+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Hang report should have been cancelled. - 
[task 2025-09-24T22:53:08.813+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded the correct number of events. - 
[task 2025-09-24T22:53:08.813+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Correct end reason. - 
[task 2025-09-24T22:53:08.813+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Waited once. - 
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAccessible.DOMNode]" {file: "chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js" line: 760}]
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - isKeyboardFocusable@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:760:18
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - assertFocusable@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:845:8
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - assertCanBeClicked@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:1221:22
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - runIfA11YChecks/this.AccessibilityUtils@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:1188:40
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - handleEvent@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:1307:12
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - click@chrome://global/content/elements/moz-button.mjs:199:19
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - waitForScriptTest@chrome://mochitests/content/browser/browser/modules/test/browser/browser_ProcessHangNotifications.js:197:48
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1252:26
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1341:18
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1490:14
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1232:14
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - 
[task 2025-09-24T22:53:08.814+00:00] 22:53:08     INFO - Leaving test bound waitForScriptTest
[task 2025-09-24T22:53:08.815+00:00] 22:53:08     INFO - Entering test bound hangGoesAwayTest
[task 2025-09-24T22:53:08.815+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Notification Displayed. - 
[task 2025-09-24T22:53:08.816+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Hang report should have been cancelled. - 
[task 2025-09-24T22:53:08.816+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded the correct number of events. - 
[task 2025-09-24T22:53:08.817+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Correct end reason. - 
[task 2025-09-24T22:53:08.817+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Didn't wait. - 
[task 2025-09-24T22:53:08.818+00:00] 22:53:08     INFO - Leaving test bound hangGoesAwayTest
[task 2025-09-24T22:53:08.818+00:00] 22:53:08     INFO - Entering test bound terminateAtShutdown
[task 2025-09-24T22:53:08.819+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | There should be a paused report for the selected browser. - 
[task 2025-09-24T22:53:08.819+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | On shutdown, should have terminated script for paused script hang. - 
[task 2025-09-24T22:53:08.820+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | On shutdown, should have terminated script for script hang. - 
[task 2025-09-24T22:53:08.820+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | On shutdown, should have terminated script for add-on hang. - 
[task 2025-09-24T22:53:08.821+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded one event per hang. - 
[task 2025-09-24T22:53:08.821+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Hangs all ended due to shutdown. - ["quit-application-granted","quit-application-granted","quit-application-granted"] deepEqual ["quit-application-granted","quit-application-granted","quit-application-granted"] - 
[task 2025-09-24T22:53:08.822+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had one extension hang. - 
[task 2025-09-24T22:53:08.822+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had one paused hang. - 
[task 2025-09-24T22:53:08.826+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | On shutdown, should have terminated script for script hang. - 
[task 2025-09-24T22:53:08.826+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | On shutdown, should have terminated script for add-on hang. - 
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Two more events. - 
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Hangs ended due to in-progress shutdown. - ["shutdown-in-progress","shutdown-in-progress"] deepEqual ["shutdown-in-progress","shutdown-in-progress"] - 
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | One more extension hang. - 
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - Leaving test bound terminateAtShutdown
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - Entering test bound terminateNoWindows
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - GECKO(61105) | [Parent 61105: Main Thread]: I/SlowChromeEvent Please do not use mouseenter/leave events in chrome. They are slower than mouseover/out! chrome://browser/content/tabbrowser/tabs.js:46:12
[task 2025-09-24T22:53:08.827+00:00] 22:53:08     INFO - GECKO(61105) | 1758754388812	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2025-09-24T22:53:08.836+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | There should be a paused report for the selected browser. - 
[task 2025-09-24T22:53:08.896+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | With no open windows, should have terminated script for paused script hang. - 
[task 2025-09-24T22:53:08.896+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | With no open windows, should have terminated script for script hang. - 
[task 2025-09-24T22:53:08.897+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | With no open windows, should have terminated script for add-on hang. - 
[task 2025-09-24T22:53:08.903+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded one event per hang. - 
[task 2025-09-24T22:53:08.904+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had two hangs ended because there were no windows left. - 
[task 2025-09-24T22:53:08.904+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had one hang ended because the window was closed. - 
[task 2025-09-24T22:53:08.905+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | With no open windows, should have terminated script for script hang. - 
[task 2025-09-24T22:53:08.905+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | With no open windows, should have terminated script for add-on hang. - 
[task 2025-09-24T22:53:08.906+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Two more events. - 
[task 2025-09-24T22:53:08.906+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Hangs ended due to no windows left. - ["no-windows-left","no-windows-left"] deepEqual ["no-windows-left","no-windows-left"] - 
[task 2025-09-24T22:53:08.907+00:00] 22:53:08     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | One more extension hang. - 
[task 2025-09-24T22:53:08.907+00:00] 22:53:08     INFO - Leaving test bound terminateNoWindows
[task 2025-09-24T22:53:08.908+00:00] 22:53:08     INFO - Entering test bound terminateClosedWindow
[task 2025-09-24T22:53:08.946+00:00] 22:53:08     INFO - GECKO(61105) | [Parent 61105: Main Thread]: I/SlowChromeEvent Please do not use mouseenter/leave events in chrome. They are slower than mouseover/out! chrome://browser/content/tabbrowser/tabs.js:46:12
[task 2025-09-24T22:53:09.063+00:00] 22:53:09     INFO - GECKO(61105) | 1758754389062	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2025-09-24T22:53:09.137+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | There should be a paused report for the selected browser. - 
[task 2025-09-24T22:53:09.205+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | When closing window, should have terminated script for a paused script hang. - 
[task 2025-09-24T22:53:09.205+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | When closing window, should have terminated script for script hang. - 
[task 2025-09-24T22:53:09.205+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | When closing window, should have terminated script for add-on hang. - 
[task 2025-09-24T22:53:09.205+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded one event per hang. - 
[task 2025-09-24T22:53:09.206+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Hangs ended due to windows closed. - ["window-closed","window-closed","window-closed"] deepEqual ["window-closed","window-closed","window-closed"] - 
[task 2025-09-24T22:53:09.207+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had one extension hang. - 
[task 2025-09-24T22:53:09.207+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Had one paused hang. - 
[task 2025-09-24T22:53:09.208+00:00] 22:53:09     INFO - Leaving test bound terminateClosedWindow
[task 2025-09-24T22:53:09.208+00:00] 22:53:09     INFO - Entering test bound permitUnload
[task 2025-09-24T22:53:09.245+00:00] 22:53:09     INFO - GECKO(61105) | [Parent 61105: Main Thread]: I/SlowChromeEvent Please do not use mouseenter/leave events in chrome. They are slower than mouseover/out! chrome://browser/content/tabbrowser/tabs.js:46:12
[task 2025-09-24T22:53:09.360+00:00] 22:53:09     INFO - GECKO(61105) | 1758754389358	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2025-09-24T22:53:09.410+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | There should be a paused report for the browser we're about to remove. - 
[task 2025-09-24T22:53:09.432+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Should have called asyncPermitUnload once (not for the hung tab). - 
[task 2025-09-24T22:53:09.487+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | Recorded one event for the hang. - 
[task 2025-09-24T22:53:09.488+00:00] 22:53:09     INFO - TEST-PASS | browser/modules/test/browser/browser_ProcessHangNotifications.js | The hang was dismissed on window close. - 
[task 2025-09-24T22:53:09.489+00:00] 22:53:09     INFO - Leaving test bound permitUnload
[task 2025-09-24T22:53:09.917+00:00] 22:53:09    ERROR - TEST-EXPECTED-FAIL | browser/modules/test/browser/browser_ProcessHangNotifications.js | changed preference: sidebar.backupState
[task 2025-09-24T22:53:09.919+00:00] 22:53:09     INFO - GECKO(61105) | MEMORY STAT | vsize 11968MB | residentFast 700MB | heapAllocated 417MB
[task 2025-09-24T22:53:09.920+00:00] 22:53:09     INFO - TEST-OK | browser/modules/test/browser/browser_ProcessHangNotifications.js | took 1394ms
[task 2025-09-24T22:53:09.928+00:00] 22:53:09     INFO - checking for open sidebars
[task 2025-09-24T22:53:09.929+00:00] 22:53:09     INFO - checking window state
[task 2025-09-24T22:53:09.935+00:00] 22:53:09     INFO - TEST-START | browser/modules/test/browser/browser_SitePermissions.js
[task 2025-09-24T22:53:10.425+00:00] 22:53:10     INFO - GECKO(61105) | MEMORY STAT | vsize 11963MB | residentFast 692MB | heapAllocated 418MB
[task 2025-09-24T22:53:10.426+00:00] 22:53:10     INFO - TEST-OK | browser/modules/test/browser/browser_SitePermissions.js | took 490ms
[task 2025-09-24T22:53:10.432+00:00] 22:53:10     INFO - checking for open sidebars
[task 2025-09-24T22:53:10.433+00:00] 22:53:10     INFO - checking window state
[task 2025-09-24T22:53:10.439+00:00] 22:53:10     INFO - TEST-START | browser/modules/test/browser/browser_SitePermissions_combinations.js
Keywords: regression
Regressed by: 1986237

:david-loe, since you are the author of the regressor, bug 1986237, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(d.loewens24)

Set release status flags based on info from the regressing bug 1986237

The patch that caused the regression is mine - D264645 - thus this one is on me.

Assignee: nobody → ayeddi
Flags: needinfo?(d.loewens24)

Anna and I discussed this at length today. Some findings:

  1. With some trace logging, we confirmed that the notification is not being dismissed before the accessibility check failure. This makes sense: accessibility checks capture the click event, which means our handler should run before any other handlers. Thus, the failure is not caused by the notification being dismissed.
  2. The DOM node still exists just before the failure. It is still "connected" to the DOM tree and its .clientWidth is > 0. This means that the node is still visible. Thus, the failure is not caused by the button being hidden for some other reason.
  3. This raises the question: why is the button's Accessible dying? If it isn't being hidden, the only other reason this could occur is the Accessible being recreated. This could be the Accessible itself or an ancestor (recreating an ancestor causes its subtree to be recreated). Unfortunately, we weren't able to get A11YLOG to work on Anna's build - I wonder if artifact builds disable that? - so we couldn't determine for sure whether it was being recreated (and if so, why).
    • It'd be good to confirm this hypothesis. This can be done by getting the DOM node at the top of AccessibilityUtils.isKeyboardFocusable, then just before the failure, logging the old accessible, the new accessible and whether they're equal:
      const newAcc = getAccessible(origNode);
      console.log(`before failure: accessible ${accessible} newAcc ${newAcc} accessible == newAcc ${accessible == newAcc}`);
      

My guess is that D264645 introduced this because the spin button check calls getAccessible, which forces a refresh tick if it can't find an Accessible. While a refresh tick is synchronous as far as our JS click handler is concerned, layout and accessibility tree updates can happen during a refresh tick, which can include an Accessible being recreated.

The most "correct" solution is probably to figure out why we're recreating here and stop it. That might be pretty difficult, though, and will involve quite a bit more diagnosis. Furthermore, it may turn out that it's simply not possible to prevent recreation here.

Perhaps the most pragmatic solution is to tweak isKeyboardFocusableSpinbuttonSibling to avoid calling getAccessible and to instead interrogate the sibling DOM node directly. This avoids the refresh ticks. This kinda wallpapers over the recreation problem, but it's pragmatic and avoiding unnecessary refresh ticks is probably a good thing anyway. This makes the check slightly less abstract, but it should be fine for our purposes. If we only care about ARIA spin buttons, we can just check something like sibling.role == "spinbutton" && sibling.tabIndex >= 0.

Calling getAccessible forces a refresh tick in some cases.
Forcing a refresh tick allows accessibility tree updates to run.
This might cause problems if the Accessible we're checking gets recreated for whatever reason, since that will cause the Accessible to die while we're still querying it.
Ideally, we'd avoid recreating it in the first place, but this might be tricky to diagnose.
It's probably best to avoid extra refresh ticks if we can anyway.
Instead of querying the sibling Accessible, we just query the sibling DOM node directly.
This is sufficient for our purposes, albeit less generalised.

Out of interest, I did some investigation to see if I could figure out what's causing recreation here. Here's a snippet from the test log with A11YLOG=tree,events for browser/modules/test/browser/browser_ProcessHangNotifications.js:

 0:34.94 GECKO(24852) A11Y EVENTS: events fired; 29:09.817
 0:34.94 GECKO(24852)   {
 0:34.94 GECKO(24852)     type: show
 0:34.94 GECKO(24852)     target: 0000021003B430C0; role: text container, idx: 0, node: 0x2101b752480, notification-message [ message-bar-type="infobar" data-l10n-attrs="heading,message" class="infobar animated" value="process-hang" type="info" style="" notification-tag="selected-tab" ]
 0:34.94 GECKO(24852)   }
...
 0:34.94 GECKO(24852) console.log: jtd isKeyboardFocusable
 0:34.95 GECKO(24852) A11Y TREE: accessible recreated; 29:09.825
 0:34.95 GECKO(24852)   {
 0:34.95 GECKO(24852)     content: 0x2101b752480, notification-message [ message-bar-type="infobar" data-l10n-attrs="heading,message" class="infobar animated" value="process-hang" type="info" style="" notification-tag="selected-tab" role="alert" ], idx in parent 0
 0:34.95 GECKO(24852)   }
...
 0:34.96 FAIL uncaught exception - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAccessible.DOMNode] at isKeyboardFocusable@chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:761:18
  1. The notification-message element is shown. Thus, it gets added to the accessibility tree and a show event is fired for it. Importantly, at this point, there is no role attribute on the DOM node.
  2. We start doing our isKeyboardFocusable checks.
  3. During those, we check for a spin button sibling, during which we call getAccessible and force a refresh tick. That allows other things to run.
  4. The notification-message Accessible gets recreated. The log doesn't tell us why. However, at this point, it does have a role DOM attribute. So, my educated guess is that we recreate the Accessible due to the addition of the role attribute.
  5. We return to our isKeyboardFocusable checks, where we fail because the Accessible we were querying is now dead due to recreation.

So, it seems that notification-message gets shown and then sets the role attribute. It should only set the role attribute after it is shown. I suspect fixing that will be tricky, though, so I still think the patch here is the most pragmatic solution for now.

Pushed by ayeddi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/29e38f2fdd57 https://hg.mozilla.org/integration/autoland/rev/085575ff6ca5 Don't call getAccessible in AccessibilityUtils.isKeyboardFocusableSpinbuttonSibling. r=ayeddi
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch

The patch landed in nightly and beta is affected.
:ayeddi, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(ayeddi)

Both the tests failing and the fix are only affecting mochitests (swr-a11y-checks), which are not likely running on Beta, but most importantly they do not affect any user-related functionality, thus no uplift is needed.

Flags: needinfo?(ayeddi)
Assignee: ayeddi → jteh
See Also: → 2002691
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: