Bug 1451770 [wpt PR 10331] - Implement deprecation of content type sniffing for workers., a=testonly
authorDaniel Vogelheim <vogelheim@chromium.org>
Thu, 19 Apr 2018 13:39:44 +0000
changeset 468401 4664d2516494a5b6bb450e7ad52ac0d40bd6fbe0
parent 468400 e4237b9124f5ae6c3fb3d722c53f4015fd80862e
child 468402 6dbe2e0d97d19329e919b5176a476402508219e9
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1451770, 10331, 975611, 549495
milestone61.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 1451770 [wpt PR 10331] - Implement deprecation of content type sniffing for workers., a=testonly Automatic update from web-platform-testsImplement deprecation of content type sniffing for workers. Allow control of the deprecation via runtime enabled features, with a first step for logging a warning to the console, and the second step to block it outright. Intent: https://groups.google.com/a/chromium.org/d/msg/blink-dev/35t5cJQ3J_Q/FH45dl0vAwAJ Change-Id: I1be1001cbbef152458119b1516750bb4f1d1e4de Reviewed-on: https://chromium-review.googlesource.com/975611 Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#549495} -- wpt-commits: d9a9bcf8b69debee46db030d75a1217325a9ca77 wpt-pr: 10331 wpt-commits: d9a9bcf8b69debee46db030d75a1217325a9ca77 wpt-pr: 10331
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/service-workers/service-worker/resources/dummy-shared-worker-interceptor.js
testing/web-platform/tests/service-workers/service-worker/resources/dummy-shared-worker-interceptor.js.headers
testing/web-platform/tests/service-workers/service-worker/resources/simple-intercept-worker.js.headers
testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/1.headers
testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/null.headers
testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/undefined.headers
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -293297,16 +293297,21 @@
      {}
     ]
    ],
    "service-workers/service-worker/resources/dummy-shared-worker-interceptor.js": [
     [
      {}
     ]
    ],
+   "service-workers/service-worker/resources/dummy-shared-worker-interceptor.js.headers": [
+    [
+     {}
+    ]
+   ],
    "service-workers/service-worker/resources/dummy-worker-interceptor.js": [
     [
      {}
     ]
    ],
    "service-workers/service-worker/resources/dummy-worker-script.py": [
     [
      {}
@@ -294227,16 +294232,21 @@
      {}
     ]
    ],
    "service-workers/service-worker/resources/simple-intercept-worker.js": [
     [
      {}
     ]
    ],
+   "service-workers/service-worker/resources/simple-intercept-worker.js.headers": [
+    [
+     {}
+    ]
+   ],
    "service-workers/service-worker/resources/simple.html": [
     [
      {}
     ]
    ],
    "service-workers/service-worker/resources/simple.txt": [
     [
      {}
@@ -299242,26 +299252,41 @@
      {}
     ]
    ],
    "workers/interfaces/WorkerUtils/importScripts/1": [
     [
      {}
     ]
    ],
+   "workers/interfaces/WorkerUtils/importScripts/1.headers": [
+    [
+     {}
+    ]
+   ],
    "workers/interfaces/WorkerUtils/importScripts/null": [
     [
      {}
     ]
    ],
+   "workers/interfaces/WorkerUtils/importScripts/null.headers": [
+    [
+     {}
+    ]
+   ],
    "workers/interfaces/WorkerUtils/importScripts/undefined": [
     [
      {}
     ]
    ],
+   "workers/interfaces/WorkerUtils/importScripts/undefined.headers": [
+    [
+     {}
+    ]
+   ],
    "workers/modules/resources/dynamic-import-and-then-static-import-worker.js": [
     [
      {}
     ]
    ],
    "workers/modules/resources/dynamic-import-given-url-worker.js": [
     [
      {}
@@ -596701,17 +596726,21 @@
    "e92684d1db4e8aef274fdd5e30abea48490b5659",
    "support"
   ],
   "service-workers/service-worker/resources/clients-matchall-worker.js": [
    "1557f173e6cc5d1540ed9d78e8c9216b312fabb5",
    "support"
   ],
   "service-workers/service-worker/resources/dummy-shared-worker-interceptor.js": [
-   "620e50059fabfdd4b5c61dbb3ed2d8dca872b9bf",
+   "dd3d9a5f1c9cb6cbfcf018ba13118439dfa13eef",
+   "support"
+  ],
+  "service-workers/service-worker/resources/dummy-shared-worker-interceptor.js.headers": [
+   "b69c06d38f1fa3585706e50dd94cfb1448891924",
    "support"
   ],
   "service-workers/service-worker/resources/dummy-worker-interceptor.js": [
    "f631d35c4eed6be4a8e6d2cdc5258ac0b169e177",
    "support"
   ],
   "service-workers/service-worker/resources/dummy-worker-script.py": [
    "1cde5ac271154715f3e06139e594e6676746cfbe",
@@ -597448,16 +597477,20 @@
   "service-workers/service-worker/resources/silence.oga": [
    "a825a6d91e5b89bec4e0f7b4b86bc7c007df7840",
    "support"
   ],
   "service-workers/service-worker/resources/simple-intercept-worker.js": [
    "1f146ad6313f6917e1b2783e6b81fccbf6884784",
    "support"
   ],
+  "service-workers/service-worker/resources/simple-intercept-worker.js.headers": [
+   "b69c06d38f1fa3585706e50dd94cfb1448891924",
+   "support"
+  ],
   "service-workers/service-worker/resources/simple.html": [
    "ccb39f9df19ae06002b1d69cc3d80fde567abdd3",
    "support"
   ],
   "service-workers/service-worker/resources/simple.txt": [
    "50d3c65ca4a0fa1ae81d167e38426b8e57ae6dbe",
    "support"
   ],
@@ -611712,24 +611745,36 @@
   "workers/interfaces/WorkerUtils/importScripts/012.html": [
    "e27c6b0d998359e0352cf3f62a61a4199b32d2e7",
    "testharness"
   ],
   "workers/interfaces/WorkerUtils/importScripts/1": [
    "550c176d72ce6fb73cf92d6c86f52aeed37f514c",
    "support"
   ],
+  "workers/interfaces/WorkerUtils/importScripts/1.headers": [
+   "b69c06d38f1fa3585706e50dd94cfb1448891924",
+   "support"
+  ],
   "workers/interfaces/WorkerUtils/importScripts/null": [
    "5f05bf57a74e1dbd9bf4f9b16343f49f9b5e363c",
    "support"
   ],
+  "workers/interfaces/WorkerUtils/importScripts/null.headers": [
+   "b69c06d38f1fa3585706e50dd94cfb1448891924",
+   "support"
+  ],
   "workers/interfaces/WorkerUtils/importScripts/undefined": [
    "842b044565f09ce3d5acc7c8afcfd4133a7dea38",
    "support"
   ],
+  "workers/interfaces/WorkerUtils/importScripts/undefined.headers": [
+   "b69c06d38f1fa3585706e50dd94cfb1448891924",
+   "support"
+  ],
   "workers/interfaces/WorkerUtils/navigator/002.html": [
    "e18650dee66ed64aacc9dac643d5197c9170ecd4",
    "testharness"
   ],
   "workers/interfaces/WorkerUtils/navigator/003.html": [
    "86c3824b44bddac81337de586c55e265507cc42d",
    "testharness"
   ],
--- a/testing/web-platform/tests/service-workers/service-worker/resources/dummy-shared-worker-interceptor.js
+++ b/testing/web-platform/tests/service-workers/service-worker/resources/dummy-shared-worker-interceptor.js
@@ -1,7 +1,9 @@
 var worker_text = 'onconnect = function(e) { e.ports[0].postMessage("worker loading intercepted by service worker"); };';
 
 self.onfetch = function(event) {
-  if (event.request.url.indexOf('dummy-shared-worker.js') != -1)
-    event.respondWith(new Response(worker_text));
+  if (event.request.url.indexOf('dummy-shared-worker.js') != -1) {
+    event.respondWith(new Response(
+        worker_text, {headers: {"Content-Type": "application/javascript"}}));
+  }
 };
 
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/service-workers/service-worker/resources/dummy-shared-worker-interceptor.js.headers
@@ -0,0 +1,1 @@
+Content-Type: application/javascript
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/service-workers/service-worker/resources/simple-intercept-worker.js.headers
@@ -0,0 +1,1 @@
+Content-Type: application/javascript
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/1.headers
@@ -0,0 +1,1 @@
+Content-Type: application/javascript
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/null.headers
@@ -0,0 +1,1 @@
+Content-Type: application/javascript
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/undefined.headers
@@ -0,0 +1,1 @@
+Content-Type: application/javascript