mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision cbbb68edacd8d7dfb23b74f50537b72e06870511
This commit is contained in:
parent
ee3fb92e53
commit
e33f4d3e48
190 changed files with 2596 additions and 668 deletions
|
@ -7,6 +7,7 @@
|
|||
<meta name="help" href="https://fetch.spec.whatwg.org/#http-network-or-cache-fetch">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/common/get-host-info.sub.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../resources/utils.js"></script>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
if (this.document === undefined) {
|
||||
importScripts("/resources/testharness.js");
|
||||
importScripts("../resources/utils.js");
|
||||
importScripts("/common/get-host-info.sub.js");
|
||||
|
||||
// A nested importScripts() with a referrer-policy should have no effect
|
||||
// on overall worker policy.
|
||||
|
@ -8,7 +9,7 @@ if (this.document === undefined) {
|
|||
}
|
||||
|
||||
var referrerOrigin = location.origin + '/';
|
||||
var fetchedUrl = "https://{{domains[www]}}:{{ports[https][0]}}" + dirname(location.pathname) + RESOURCES_DIR + "inspect-headers.py?cors&headers=referer";
|
||||
var fetchedUrl = get_host_info().HTTP_REMOTE_ORIGIN + dirname(location.pathname) + RESOURCES_DIR + "inspect-headers.py?cors&headers=referer";
|
||||
|
||||
promise_test(function(test) {
|
||||
return fetch(fetchedUrl).then(function(resp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue