Bug 1455078: Remove non-conformant ServiceWorker test case r=asuth
authorYaron Tausky <ytausky@mozilla.com>
Wed, 22 Aug 2018 15:11:33 +0000
changeset 481229 6fc9afb46004610e53c0dca8e151c7cb346d4f46
parent 481228 5e8edebf7500503c48f0a5c08e8ffdb04175a8a2
child 481230 0e8f94baa6075cb38b8782ab05c5306eb3490f5e
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersasuth
bugs1455078
milestone63.0a1
Bug 1455078: Remove non-conformant ServiceWorker test case r=asuth This test case would fail on a conforming implementation of the spec, since navigator.serviceWorker is undefined in frames originating from data: URLs, thus navigator.serviceWorker.controller doesn't exist. This is tested in service-workers/service-worker/interfaces-window.https.html, in test case 'navigator.serviceWorker is not available in a data: iframe'. Differential Revision: https://phabricator.services.mozilla.com/D3595
testing/web-platform/tests/service-workers/service-worker/local-url-inherit-controller.https.html
--- a/testing/web-platform/tests/service-workers/service-worker/local-url-inherit-controller.https.html
+++ b/testing/web-platform/tests/service-workers/service-worker/local-url-inherit-controller.https.html
@@ -75,30 +75,16 @@ promise_test(function(t) {
     scheme: 'blob',
     child: 'worker',
     check: 'fetch',
     expect: 'intercept',
   });
 }, 'Same-origin blob URL worker should intercept fetch().');
 
 promise_test(function(t) {
-  // Data URLs should result in an opaque origin and should probably not
-  // have access to a cross-origin service worker.  See:
-  //
-  // https://github.com/w3c/ServiceWorker/issues/1262
-  //
-  return doAsyncTest(t, {
-    scheme: 'data',
-    child: 'iframe',
-    check: 'controller',
-    expect: 'not inherit',
-  });
-}, 'Data URL iframe should not inherit service worker controller.');
-
-promise_test(function(t) {
   return doAsyncTest(t, {
     scheme: 'data',
     child: 'iframe',
     check: 'fetch',
     expect: 'not intercept',
   });
 }, 'Data URL iframe should not intercept fetch().');