[iOS] HLS streams disappear from Now Playing when paused on the lock screen
[WebKit-https.git] / LayoutTests / http / wpt / prefetch / resources / navigate-cross-origin-vary-cookie.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <script src="/common/get-host-info.sub.js"></script>
4 <body onload="test()">
5 <script>
6   if (window.testRunner)
7     testRunner.setAlwaysAcceptCookies(true);
8
9   async function test() {
10     var link = document.createElement("link");
11     link.rel = "prefetch";
12     link.href = get_host_info().HTTP_REMOTE_ORIGIN + "/WebKit/prefetch/resources/main-resource-cross-origin-vary-cookie.py";
13     document.body.appendChild(link);
14
15     await fetch(get_host_info().HTTP_REMOTE_ORIGIN + "/WebKit/prefetch/resources/main-resource-cross-origin-set-cookie.py", { "credentials": "include" });
16
17     window.location = get_host_info().HTTP_REMOTE_ORIGIN + "/WebKit/prefetch/resources/main-resource-cross-origin-vary-cookie.py";
18   }
19 </script>
20 </body>