Index: LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html |
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html b/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html |
index 485128619eac80de5e646d78e4db9cd5d748002e..e096c149909ad8b3292a73acc2b799b6fb913134 100644 |
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html |
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html |
@@ -1,2 +1,13 @@ |
-<link id="same" rel="import" href="http://127.0.0.1:8000/dummy-dir/same.html"> |
-<link id="other" rel="import" href="http://localhost:8000/dummy-dir/other.html"> |
+<script src="../../resources/get-host-info.js"></script> |
+<script type="text/javascript"> |
+ var hostInfo = get_host_info(); |
+ var makeLink = function(id, url) { |
+ var link = document.createElement('link'); |
+ link.rel = 'import' |
+ link.id = id; |
+ link.href = url; |
+ document.documentElement.appendChild(link); |
+ }; |
+ makeLink('same', hostInfo.HTTP_ORIGIN + '/dummy-dir/same.html'); |
+ makeLink('other', hostInfo.HTTP_REMOTE_ORIGIN + '/dummy-dir/other.html'); |
+</script> |