1
0
Fork 0
firefox/dom/workers/test/test_navigator.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
394 B
JavaScript

SimpleTest.waitForExplicitFinish();
// This test loads in an iframe, to ensure that the navigator instance is
// loaded with the correct value of the preference.
SpecialPowers.pushPrefEnv({ set: [["dom.netinfo.enabled", true]] }, () => {
let iframe = document.createElement("iframe");
iframe.id = "f1";
iframe.src = "test_navigator_iframe.html";
document.body.appendChild(iframe);
});