Bug 1455078: Enable service worker testing in test r=asuth
authorYaron Tausky <ytausky@mozilla.com>
Wed, 22 Aug 2018 13:15:18 +0000
changeset 490603 3f29d9aef185203912597b32bd1270d78d9e499d
parent 490602 0e8f94baa6075cb38b8782ab05c5306eb3490f5e
child 490604 9e44b02e94ca5f7e896be3eb02b6d27a40d7054b
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1455078
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1455078: Enable service worker testing in test r=asuth This preference must be enabled since the test creates an insecure context, in which navigator.serviceWorker is undefined. Differential Revision: https://phabricator.services.mozilla.com/D3594
dom/serviceworkers/test/test_navigator.html
--- a/dom/serviceworkers/test/test_navigator.html
+++ b/dom/serviceworkers/test/test_navigator.html
@@ -23,17 +23,18 @@
     ok(navigator.serviceWorker.ready instanceof Promise, "navigator.serviceWorker.ready should be a Promise.");
     ok(navigator.serviceWorker.controller === null, "There should be no controller worker for an uncontrolled document.");
   }
 
   SimpleTest.waitForExplicitFinish();
 
   SpecialPowers.pushPrefEnv({"set": [
     ["dom.serviceWorkers.exemptFromPerDomainMax", true],
-    ["dom.serviceWorkers.enabled", true]
+    ["dom.serviceWorkers.enabled", true],
+    ["dom.serviceWorkers.testing.enabled", true]
   ]}, function() {
     checkEnabled();
     SimpleTest.finish();
   });
 </script>
 </pre>
 </body>
 </html>