Bug 1455078: Remove non-conformant ServiceWorker test case r=asuth
authorYaron Tausky <ytausky@mozilla.com>
Wed, 22 Aug 2018 15:11:33 +0000
changeset 432861 6fc9afb46004610e53c0dca8e151c7cb346d4f46
parent 432860 5e8edebf7500503c48f0a5c08e8ffdb04175a8a2
child 432862 0e8f94baa6075cb38b8782ab05c5306eb3490f5e
push id34489
push usercbrindusan@mozilla.com
push dateWed, 22 Aug 2018 21:55:30 +0000
treeherdermozilla-central@120c4145368d [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: 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().');