-
-
Save jugglinmike/bc0525e9710ef1d477ad07035b9d2ff7 to your computer and use it in GitHub Desktop.
17.04.07-ServiceWorker-diffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/external/wpt/service-workers/service-worker/fetch-canvas-tainting.https.html b/http/tests/serviceworker/fetch-canvas-tainting.html | |
index 55faa9d..d3aa5fa 100644 | |
--- a/external/wpt/service-workers/service-worker/fetch-canvas-tainting.https.html | |
+++ b/http/tests/serviceworker/fetch-canvas-tainting.html | |
@@ -1,9 +1,9 @@ | |
<!DOCTYPE html> | |
<title>Service Worker: canvas tainting of the fetched image</title> | |
-<script src="/resources/testharness.js"></script> | |
-<script src="/resources/testharnessreport.js"></script> | |
-<script src="/common/get-host-info.sub.js"></script> | |
-<script src="resources/test-helpers.sub.js?pipe=sub"></script> | |
+<script src="../resources/testharness.js"></script> | |
+<script src="../resources/testharnessreport.js"></script> | |
+<script src="../resources/get-host-info.js?pipe=sub"></script> | |
+<script src="resources/test-helpers.js"></script> | |
<body> | |
<script> | |
async_test(function(t) { | |
@@ -11,7 +11,7 @@ async_test(function(t) { | |
var SCRIPT = 'resources/fetch-rewrite-worker.js'; | |
var host_info = get_host_info(); | |
- login_https(t) | |
+ login(t, host_info.HTTP_ORIGIN, host_info.HTTP_REMOTE_ORIGIN) | |
.then(function() { | |
return service_worker_unregister_and_register(t, SCRIPT, SCOPE); | |
}) | |
@@ -28,7 +28,7 @@ async_test(function(t) { | |
service_worker_unregister_and_done(t, SCOPE); | |
}); | |
frame.contentWindow.postMessage({}, | |
- host_info['HTTPS_ORIGIN'], | |
+ host_info['HTTP_ORIGIN'], | |
[channel.port2]); | |
}); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/external/wpt/service-workers/service-worker/fetch-cors-xhr.https.html b/http/tests/serviceworker/fetch-cors-xhr.html | |
index 521c01c..ee22c7f 100644 | |
--- a/external/wpt/service-workers/service-worker/fetch-cors-xhr.https.html | |
+++ b/http/tests/serviceworker/fetch-cors-xhr.html | |
@@ -1,9 +1,9 @@ | |
<!DOCTYPE html> | |
<title>Service Worker: CORS XHR of fetch()</title> | |
-<script src="/resources/testharness.js"></script> | |
-<script src="/resources/testharnessreport.js"></script> | |
-<script src="/common/get-host-info.sub.js"></script> | |
-<script src="resources/test-helpers.sub.js?pipe=sub"></script> | |
+<script src="../resources/testharness.js"></script> | |
+<script src="../resources/testharnessreport.js"></script> | |
+<script src="../resources/get-host-info.js?pipe=sub"></script> | |
+<script src="resources/test-helpers.js"></script> | |
<body> | |
<script> | |
async_test(function(t) { | |
@@ -11,7 +11,7 @@ async_test(function(t) { | |
var SCRIPT = 'resources/fetch-rewrite-worker.js'; | |
var host_info = get_host_info(); | |
- login_https(t) | |
+ login(t, host_info.HTTP_ORIGIN, host_info.HTTP_REMOTE_ORIGIN) | |
.then(function() { | |
return service_worker_unregister_and_register(t, SCRIPT, SCOPE); | |
}) | |
@@ -28,7 +28,7 @@ async_test(function(t) { | |
service_worker_unregister_and_done(t, SCOPE); | |
}); | |
frame.contentWindow.postMessage({}, | |
- host_info['HTTPS_ORIGIN'], | |
+ host_info['HTTP_ORIGIN'], | |
[channel.port2]); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment