tor-browser

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

commit 40b68f1baa72655e79def00a30d6de5a90ab745a
parent ce61ed0fc59347e8329d06ffe190515cf330b31e
Author: Alexandru Marc <amarc@mozilla.com>
Date:   Fri, 31 Oct 2025 18:58:33 +0200

Revert "Bug 1979288 - Enable Navigation API on Nightly. r=webidl,smaug,jjaschke,avandolder" for causing mochitest failures @ test_interfaces.html

This reverts commit 36a1a31a845505aba93113af554560e6d42496f0.

Diffstat:
Mdom/tests/mochitest/general/interface_exposure_checker.js | 4----
Mdom/tests/mochitest/general/test_interfaces.js | 50++++++++------------------------------------------
Mmodules/libpref/init/StaticPrefList.yaml | 2+-
3 files changed, 9 insertions(+), 47 deletions(-)

diff --git a/dom/tests/mochitest/general/interface_exposure_checker.js b/dom/tests/mochitest/general/interface_exposure_checker.js @@ -13,7 +13,6 @@ function entryDisabled( isInsecureContext, isFennec, isCrossOriginIsolated, - isSessionHistoryInParent, } ) { return ( @@ -36,7 +35,6 @@ function entryDisabled( (isInsecureContext && !entry.insecureContext) || entry.earlyBetaOrEarlier === !isEarlyBetaOrEarlier || entry.crossOriginIsolated === !isCrossOriginIsolated || - entry.sessionHistoryInParent === !isSessionHistoryInParent || entry.disabled ); } @@ -135,7 +133,6 @@ if (typeof window !== "undefined") { "resource://gre/modules/AppConstants.sys.mjs" ); const sysinfo = SpecialPowers.Services.sysinfo; - const appinfo = SpecialPowers.Services.appinfo; return { isNightly: AppConstants.NIGHTLY_BUILD, @@ -155,7 +152,6 @@ if (typeof window !== "undefined") { SpecialPowers.Ci.nsIGeckoViewBridge ).isFennec, isCrossOriginIsolated: window.crossOriginIsolated, - isSessionHistoryInParent: appinfo.sessionHistoryInParent, }; }; } diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js @@ -996,58 +996,31 @@ let interfaceNamesInGlobalScope = [ // IMPORTANT: Do not change this list without review from a DOM peer! { name: "NamedNodeMap", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! - { - name: "NavigateEvent", - insecureContext: true, - nightly: true, - sessionHistoryInParent: true, - }, + { name: "NavigateEvent", insecureContext: true, disabled: true }, // IMPORTANT: Do not change this list without review from a DOM peer! - { name: "Navigation", insecureContext: true, nightly: true }, + { name: "Navigation", insecureContext: true, disabled: true }, // IMPORTANT: Do not change this list without review from a DOM peer! - { - name: "NavigationActivation", - insecureContext: true, - nightly: true, - sessionHistoryInParent: true, - }, + { name: "NavigationActivation", insecureContext: true, disabled: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "NavigationCurrentEntryChangeEvent", insecureContext: true, - nightly: true, - sessionHistoryInParent: true, + disabled: true, }, // IMPORTANT: Do not change this list without review from a DOM peer! - { - name: "NavigationDestination", - insecureContext: true, - nightly: true, - sessionHistoryInParent: true, - }, + { name: "NavigationDestination", insecureContext: true, disabled: true }, // IMPORTANT: Do not change this list without review from a DOM peer! - { - name: "NavigationHistoryEntry", - insecureContext: true, - nightly: true, - sessionHistoryInParent: true, - }, + { name: "NavigationHistoryEntry", insecureContext: true, disabled: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "NavigationPrecommitController", insecureContext: true, - nightly: true, - sessionHistoryInParent: true, + disabled: true, }, // IMPORTANT: Do not change this list without review from a DOM peer! "NavigationPreloadManager", // IMPORTANT: Do not change this list without review from a DOM peer! - { - name: "NavigationTransition", - insecureContext: true, - nightly: true, - sessionHistoryInParent: true, - }, + { name: "NavigationTransition", insecureContext: true, disabled: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "Navigator", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! @@ -1812,13 +1785,6 @@ let interfaceNamesInGlobalScope = [ // IMPORTANT: Do not change this list without review from a DOM peer! { name: "name", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! - { - name: "navigation", - insecureContext: true, - nightly: true, - sessionHistoryInParent: true, - }, - // IMPORTANT: Do not change this list without review from a DOM peer! { name: "navigator", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "netscape", insecureContext: true }, diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml @@ -3687,7 +3687,7 @@ # Whether the navigation API will be exposed. - name: dom.navigation.webidl.enabled type: RelaxedAtomicBool - value: @IS_NIGHTLY_BUILD@ + value: false mirror: always do_not_use_directly: true