commit 6d2657e84691a4b02d3093623a22edf128ae697b
parent 98b90941771b7233d541961d4a5ca3b5892ab9be
Author: Keith Cirkel <keithamus@users.noreply.github.com>
Date: Thu, 16 Oct 2025 15:12:43 +0000
Bug 1994433 - Enable navigation api in test_all_synthetic_events.html r=farre,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D268730
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dom/events/test/test_all_synthetic_events.html b/dom/events/test/test_all_synthetic_events.html
@@ -265,6 +265,12 @@ const kEventConstructors = {
return e;
},
},
+ NavigateEvent: { create: null
+ // Cannot create NavigateEvent without NavigationDestination which can't be created
+ },
+ NavigationCurrentEntryChangeEvent: { create: null
+ // Cannot create NavigationCurrentEntryChangeEvent without window.navigation
+ },
OfflineAudioCompletionEvent: { create: "AudioContext" in self
? function (aName, aProps) {
var ac = new AudioContext();
@@ -484,7 +490,8 @@ function test() {
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv(
{"set": [["dom.w3c_touch_events.legacy_apis.enabled", true],
- ["dom.events.textevent.enabled", true]]},
+ ["dom.events.textevent.enabled", true],
+ ["dom.navigation.webidl.enabled", true]]},
function() {
test();
SimpleTest.finish();