commit 5e70dbff2fa1e22e983e10e5e04da4fe02ad0918
parent 9af5cb6bfc371741c1a976b71e42931137ec0201
Author: Jan-Niklas Jaeschke <jjaschke@mozilla.com>
Date: Wed, 15 Oct 2025 08:57:57 +0000
Bug 1994377 - Navigation API: Set `window.navigation` to be replaceable. r=farre,webidl
Differential Revision: https://phabricator.services.mozilla.com/D268674
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl
@@ -205,7 +205,7 @@ interface nsIPrintSettings;
[PutForwards=href, LegacyUnforgeable, CrossOriginReadable,
CrossOriginWritable] readonly attribute Location location;
[Throws] readonly attribute History history;
- [Func="Navigation::IsAPIEnabled"] readonly attribute Navigation navigation;
+ [Replaceable, Func="Navigation::IsAPIEnabled"] readonly attribute Navigation navigation;
readonly attribute CustomElementRegistry customElements;
[Replaceable, Throws] readonly attribute BarProp locationbar;
[Replaceable, Throws] readonly attribute BarProp menubar;
diff --git a/testing/web-platform/meta/html/dom/idlharness.https.html.ini b/testing/web-platform/meta/html/dom/idlharness.https.html.ini
@@ -796,8 +796,7 @@ prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.security.featu
[idlharness.https.html?include=(Document|Window)]
[Window interface: attribute navigation]
- expected:
- if not sessionHistoryInParent: FAIL
+ expected: FAIL
[Window interface: window must inherit property "navigation" with the proper type]
expected: