summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/test_navigator.js
blob: c1eab3aa89f509c2110f20d08256251b30649558 (plain)
1
2
3
4
5
6
7
8
9
10
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);
});