tor-browser

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

commit 807aac08ca3a1900275037f54d5af41f162e938a
parent da8b29b1ad4ecf62939e62a8fce8ca61bcab5d74
Author: Nikki Sharpley <nsharpley@mozilla.com>
Date:   Wed, 29 Oct 2025 14:12:47 +0000

Bug 1983329 - Green up the browser/components/privatebrowsing tests when enabling sidebar.revamp by default r=jsudiaman

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

Diffstat:
Mbrowser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_sidebar.js @@ -8,6 +8,15 @@ // See Bug 885054: https://bugzilla.mozilla.org/show_bug.cgi?id=885054 function test() { + let isRevampEnabled = Services.prefs.getBoolPref("sidebar.revamp", false); + if (isRevampEnabled) { + ok(isRevampEnabled, "Sidebar revamp is enabled."); + info( + "Expected behaviour for the revamped sidebar in a private window is to adopt the state of the opener window" + ); + return; + } + waitForExplicitFinish(); // opens a sidebar