Make FileAPI/url/cross-global-revoke.sub.html compatible with WebKit infrastructure (#35455)
Rely on get_host_info() to get a remote origin.
diff --git a/FileAPI/url/cross-global-revoke.sub.html b/FileAPI/url/cross-global-revoke.sub.html
index 21b8c5b..ce9d680 100644
--- a/FileAPI/url/cross-global-revoke.sub.html
+++ b/FileAPI/url/cross-global-revoke.sub.html
@@ -2,6 +2,7 @@
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
<body>
<script>
async_test(t => {
@@ -42,7 +43,7 @@
const url = URL.createObjectURL(blob);
const frame = document.createElement('iframe');
frame.setAttribute('style', 'display:none;');
- frame.src = '//{{domains[www1]}}:{{location[port]}}/FileAPI/url/resources/revoke-helper.html';
+ frame.src = get_host_info().HTTP_REMOTE_ORIGIN + '/FileAPI/url/resources/revoke-helper.html';
document.body.appendChild(frame);
frame.onload = t.step_func(e => {
@@ -58,4 +59,4 @@
}));
}, 'It is not possible to revoke cross-origin blob URLs.');
-</script>
\ No newline at end of file
+</script>