tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 0923d75a63760c72f6d7265e7073f940290d1269
parent 4b8f06a68a3df5c6b5b34998353dc4ea5dfac528
Author: Julian Descottes <jdescottes@mozilla.com>
Date:   Mon, 13 Oct 2025 15:45:39 +0000

Bug 1872980 - [devtools] Disable focusableRule in browser_tab_not_selected.js r=nchevobbe,devtools-reviewers

Wrap the call to selectDevicePixelRatio with AccessibilityUtils.setEnv/resetEnv to avoid
intermittent a11y failures

Differential Revision: https://phabricator.services.mozilla.com/D268406

Diffstat:
Mdevtools/client/responsive/test/browser/browser.toml | 1-
Mdevtools/client/responsive/test/browser/browser_tab_not_selected.js | 9+++++++++
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/devtools/client/responsive/test/browser/browser.toml b/devtools/client/responsive/test/browser/browser.toml @@ -153,7 +153,6 @@ https_first_disabled = true ["browser_tab_close.js"] ["browser_tab_not_selected.js"] -fail-if = ["a11y_checks"] # Bug 1849028 clicked button#device-pixel-ratio-menu element may not be focusable ["browser_tab_remoteness_change.js"] diff --git a/devtools/client/responsive/test/browser/browser_tab_not_selected.js b/devtools/client/responsive/test/browser/browser_tab_not_selected.js @@ -28,12 +28,21 @@ addRDMTask( gBrowser.selectedTab = tab1; info("Try to update the DPI"); + + // The click on the device pixel ratio select is intermittently flagged as + // not accessible. See Bug 1849028 for a11y issues in DevTools tests. + AccessibilityUtils.setEnv({ + focusableRule: false, + }); + await selectDevicePixelRatio(ui, 2); const dppx = await waitForDevicePixelRatio(ui, 2, { waitForTargetConfiguration: true, }); is(dppx, 2, "Content has expected devicePixelRatio"); + AccessibilityUtils.resetEnv(); + const clientClosed = waitForClientClose(ui); await removeTab(tab2); await removeTab(tab1);