tor-browser

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

commit b0878380e980bbb3f4098f41eed50a61249f0d18
parent 4ba296b088b5e38cfdd5f31484b8b60cb0089a5d
Author: Nikki Sharpley <nsharpley@mozilla.com>
Date:   Wed, 22 Oct 2025 15:50:27 +0000

Bug 1983324 - Green up the browser/base/content/test/siteIdentity/ tests when enabling sidebar.revamp by default r=kcochrane

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

Diffstat:
Mbrowser/base/content/test/siteIdentity/browser_identityBlock_focus.js | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/browser/base/content/test/siteIdentity/browser_identityBlock_focus.js b/browser/base/content/test/siteIdentity/browser_identityBlock_focus.js @@ -108,11 +108,14 @@ add_task(async function testInvalidPageProxyState() { await synthesizeKeyAndWaitForFocus(gURLBar, "l", { accelKey: true }); } is(document.activeElement, gURLBar.inputField, "urlbar should be focused"); - await synthesizeKeyAndWaitForFocus( - document.getElementById("home-button"), - "VK_TAB", - { shiftKey: true } + let nextElement = document.getElementById( + Services.prefs.getBoolPref("sidebar.revamp", true) + ? "sidebar-button" + : "home-button" ); + await synthesizeKeyAndWaitForFocus(nextElement, "VK_TAB", { + shiftKey: true, + }); await synthesizeKeyAndWaitForFocus( document.getElementById("tabs-newtab-button"), "VK_TAB",