mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -1 +1 @@
|
|||
Content-Security-Policy: referrer no-referrer;
|
||||
Referrer-Policy: no-referrer
|
||||
|
|
|
@ -1 +1 @@
|
|||
Content-Security-Policy: referrer no-referrer;
|
||||
Referrer-Policy: no-referrer
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Fetch in worker: referrer with origin-when-cross-origin policy</title>
|
||||
<meta name="help" href="https://fetch.spec.whatwg.org/#main-fetch">
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
fetch_tests_from_worker(new Worker("referrer-origin-when-cross-origin.js?pipe=sub"));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Fetch: referrer with origin-when-cross-origin policy</title>
|
||||
<meta name="help" href="https://fetch.spec.whatwg.org/#main-fetch">
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../resources/utils.js"></script>
|
||||
<script src="referrer-origin-when-cross-origin.js?pipe=sub"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Referrer-Policy: origin-when-cross-origin
|
|
@ -0,0 +1,16 @@
|
|||
if (this.document === undefined) {
|
||||
importScripts("/resources/testharness.js");
|
||||
importScripts("../resources/utils.js");
|
||||
}
|
||||
|
||||
var referrerOrigin = "http://{{host}}:{{ports[http][0]}}/";
|
||||
var fetchedUrl = "http://{{host}}:{{ports[http][1]}}" + dirname(location.pathname) + RESOURCES_DIR + "inspect-headers.py?cors&headers=referer";
|
||||
|
||||
promise_test(function(test) {
|
||||
return fetch(fetchedUrl).then(function(resp) {
|
||||
assert_equals(resp.status, 200, "HTTP status is 200");
|
||||
assert_equals(resp.headers.get("x-request-referer"), referrerOrigin, "request's referrer is " + referrerOrigin);
|
||||
});
|
||||
}, "Request's referrer is origin");
|
||||
|
||||
done();
|
|
@ -0,0 +1 @@
|
|||
Referrer-Policy: origin-when-cross-origin
|
|
@ -1 +1 @@
|
|||
Content-Security-Policy: referrer origin;
|
||||
Referrer-Policy: origin
|
||||
|
|
|
@ -1 +1 @@
|
|||
Content-Security-Policy: referrer origin;
|
||||
Referrer-Policy: origin
|
||||
|
|
|
@ -1 +1 @@
|
|||
Content-Security-Policy: referrer unsafe-url;
|
||||
Referrer-Policy: unsafe-url
|
||||
|
|
|
@ -1 +1 @@
|
|||
Content-Security-Policy: referrer unsafe-url;
|
||||
Referrer-Policy: unsafe-url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue