summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/origins/resources/redirect.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/origins/resources/redirect.html')
-rw-r--r--tests/auto/core/origins/resources/redirect.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/core/origins/resources/redirect.html b/tests/auto/core/origins/resources/redirect.html
index 04948e14b..603cb76f0 100644
--- a/tests/auto/core/origins/resources/redirect.html
+++ b/tests/auto/core/origins/resources/redirect.html
@@ -2,7 +2,14 @@
<html>
<head>
<title>redirect</title>
- <link rel="stylesheet" href="redirect1:/resources/redirect.css">
+ <script>
+ function addStylesheetLink(src) {
+ let link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.href = src;
+ document.getElementsByTagName("head")[0].appendChild(link);
+ }
+ </script>
</head>
<body>
Text