tor-browser

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

commit a741081ad9a5b9ace6add93b787baa77405d6107
parent c44e1d9c2ec16b550fc492ac408015fd63930c31
Author: Atila Butkovits <abutkovits@mozilla.com>
Date:   Tue,  7 Oct 2025 10:33:45 +0300

Revert "Bug 1961568: Handle about:newtab and about:privatebrowsing as blank page always r=adw" for causing failures at browser_primaryUI.js.

This reverts commit d156ec1e68675ed4b800759cf9610ebb3af92a6d.

Diffstat:
Mbrowser/base/content/utilityOverlay.js | 3+--
Mbrowser/components/urlbar/tests/browser/browser_searchModeSwitcher_dynamicUnifiedSearchButton.js | 34----------------------------------
2 files changed, 1 insertion(+), 36 deletions(-)

diff --git a/browser/base/content/utilityOverlay.js b/browser/base/content/utilityOverlay.js @@ -78,8 +78,7 @@ function isBlankPageURL(aURL) { return ( aURL == "about:blank" || aURL == "about:home" || - aURL == AboutNewTab.newTabURL || - aURL == "about:privatebrowsing" || + aURL == BROWSER_NEW_TAB_URL || aURL == "chrome://browser/content/blanktab.html" ); } diff --git a/browser/components/urlbar/tests/browser/browser_searchModeSwitcher_dynamicUnifiedSearchButton.js b/browser/components/urlbar/tests/browser/browser_searchModeSwitcher_dynamicUnifiedSearchButton.js @@ -134,40 +134,6 @@ add_task(async function test_button_visibility_by_tab_switching() { BrowserTestUtils.removeTab(tab); }); -add_task(async function test_button_visibility_by_navigate_blank_page() { - const BLANK_PAGE_URLS = [ - "about:blank", - "about:home", - "about:newtab", - "about:privatebrowsing", - ]; - - for (let isPrivateMode of [false, true]) { - for (let url of BLANK_PAGE_URLS) { - info(`Test for ${url} in private mode: ${isPrivateMode}`); - - info("Open pageproxystate valid page"); - let tab = await BrowserTestUtils.openNewForegroundTab( - gBrowser, - "https://example.com/" - ); - await assertState(false, "valid"); - - info("Navigate to blank page"); - let onLocationChange = BrowserTestUtils.waitForLocationChange( - gBrowser, - url - ); - gURLBar.value = url; - gURLBar.focus(); - EventUtils.synthesizeKey("KEY_Enter"); - await onLocationChange; - await assertState(true, "invalid"); - BrowserTestUtils.removeTab(tab); - } - } -}); - async function assertState(expectedVisible, expectedProxyPageState) { let switcher = document.getElementById("urlbar-searchmode-switcher"); await BrowserTestUtils.waitForCondition(() => {