Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-worker.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-worker.js |
similarity index 75% |
rename from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js |
rename to third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-worker.js |
index 96c1447574934e9a28dabd7bf4b904689722229a..274142f5ce440016bb53b4ce8cecc44c8adb5b85 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js |
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-worker.js |
@@ -1,15 +1,15 @@ |
-importScripts('../../resources/get-host-info.js'); |
-importScripts('test-helpers.js'); |
+importScripts('/common/get-host-info.sub.js'); |
+importScripts('test-helpers.sub.js'); |
self.addEventListener('fetch', function(event) { |
if (event.request.url.indexOf('cross-origin-css.css') != -1) { |
event.respondWith(fetch( |
- get_host_info()['HTTP_REMOTE_ORIGIN'] + base_path() + |
+ get_host_info()['HTTPS_REMOTE_ORIGIN'] + base_path() + |
'fetch-request-css-cross-origin-mime-check-cross.css', |
{mode: 'no-cors'})); |
} else if (event.request.url.indexOf('cross-origin-html.css') != -1) { |
event.respondWith(fetch( |
- get_host_info()['HTTP_REMOTE_ORIGIN'] + base_path() + |
+ get_host_info()['HTTPS_REMOTE_ORIGIN'] + base_path() + |
'fetch-request-css-cross-origin-mime-check-cross.html', |
{mode: 'no-cors'})); |
} else if (event.request.url.indexOf('synthetic.css') != -1) { |