| Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-other-origin.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
|
| similarity index 87%
|
| copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-other-origin.html
|
| copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
|
| index fbff9f620cb922fb7d3d5df6b2b647e3187b781e..c1441ba685a41ad3b567ef6df3e5838cdd26bb53 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-other-origin.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
|
| @@ -1,9 +1,9 @@
|
| <!DOCTYPE html>
|
| -<script src="../../resources/get-host-info.js?pipe=sub"></script>
|
| -<script src="test-helpers.js"></script>
|
| +<script src="get-host-info.sub.js"></script>
|
| +<script src="test-helpers.sub.js"></script>
|
| <script>
|
| var host_info = get_host_info();
|
| -var SCOPE = 'navigation-redirect-scope1.php';
|
| +var SCOPE = 'navigation-redirect-scope1.py';
|
| var SCRIPT = 'navigation-redirect-worker.js';
|
|
|
| var registration;
|
| @@ -30,7 +30,7 @@ var wait_for_worker_promise = navigator.serviceWorker.getRegistration(SCOPE)
|
| function send_result(message_id, result) {
|
| window.parent.postMessage(
|
| {id: message_id, result: result},
|
| - host_info['HTTP_ORIGIN']);
|
| + host_info['HTTPS_ORIGIN']);
|
| }
|
|
|
| function get_intercepted_urls(worker) {
|
| @@ -44,7 +44,7 @@ function get_intercepted_urls(worker) {
|
| window.addEventListener('message', on_message, false);
|
|
|
| function on_message(e) {
|
| - if (e.origin != host_info['HTTP_ORIGIN']) {
|
| + if (e.origin != host_info['HTTPS_ORIGIN']) {
|
| console.error('invalid origin: ' + e.origin);
|
| return;
|
| }
|
|
|