Index: LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/access-control-base-https-other-https.html |
diff --git a/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/access-control-base-https-other-https.html b/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/access-control-base-https-other-https.html |
index 057071ad5a959e85c97b36b63c764163587ad0fa..5974d281c51567674a5071676df0723f874761da 100644 |
--- a/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/access-control-base-https-other-https.html |
+++ b/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/access-control-base-https-other-https.html |
@@ -3,6 +3,7 @@ |
<meta name="timeout" content="long"></meta> |
<script src = "/resources/testharness.js"></script> |
<script src = "/resources/testharnessreport.js"></script> |
+<script src = "/resources/get-host-info.js"></script> |
<script src = "/serviceworker/resources/test-helpers.js"></script> |
<script src = "/fetch/resources/fetch-test-options.js"></script> |
<script src = "/fetch/resources/fetch-test-helpers.js"></script> |
@@ -16,13 +17,17 @@ function onlyOnServiceWorkerProxiedTest(checkFuncs) { |
</head> |
<body> |
<script> |
+var host_info = get_host_info(); |
function start(t) { |
executeServiceWorkerProxiedTests(TEST_TARGETS); |
t.done(); |
} |
function init(test) { |
- return login(test) |
- .then(function() {return login_https(test);}); |
+ return login(host_info["HTTP_ORIGIN"], host_info["HTTP_REMOTE_ORIGIN"], test) |
+ .then(function() { |
+ return login(host_info["HTTPS_ORIGIN"], |
+ host_info["HTTPS_REMOTE_ORIGIN"], test); |
+ }); |
} |
</script> |