Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-01-27 08:10:21 UTC (rev 255138)
@@ -1,3 +1,20 @@
+2020-01-27 Rob Buis <[email protected]>
+
+ Re-sync web-platform-tests/fetch/api/policies from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=206574
+
+ Reviewed by Darin Adler.
+
+ * web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html:
+ * web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-expected.txt:
+ * web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https-expected.txt:
+ * web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-worker-expected.txt:
+ * web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.html:
+ * web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.js:
+ * web-platform-tests/fetch/api/policies/referrer-origin.js:
+ (promise_test):
+ * web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https.html:
+
2020-01-24 Youenn Fablet <[email protected]>
Add support for MediaRecorder.requestData
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html 2020-01-27 08:10:21 UTC (rev 255138)
@@ -12,7 +12,7 @@
</head>
<body>
<script>
- service_worker_test("referrer-no-referrer.js?pipe=sub");
+ service_worker_test("referrer-no-referrer.js");
</script>
</body>
</html>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-expected.txt (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-expected.txt 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-expected.txt 2020-01-27 08:10:21 UTC (rev 255138)
@@ -1,4 +1,3 @@
-Blocked access to external URL https://www.localhost:9443/fetch/api/resources/inspect-headers.py?cors&headers=referer
-FAIL Request's referrer is origin promise_test: Unhandled rejection with value: object "TypeError: Type error"
+PASS Request's referrer is origin
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https-expected.txt (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https-expected.txt 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https-expected.txt 2020-01-27 08:10:21 UTC (rev 255138)
@@ -1,4 +1,4 @@
PASS Fetch in service worker: referrer with origin-when-cross-origin policy
-FAIL Request's referrer is origin promise_test: Unhandled rejection with value: object "TypeError: A server with the specified hostname could not be found."
+FAIL Request's referrer is origin promise_test: Unhandled rejection with value: object "TypeError: Not allowed to request resource"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-worker-expected.txt (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-worker-expected.txt 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-worker-expected.txt 2020-01-27 08:10:21 UTC (rev 255138)
@@ -1,4 +1,3 @@
-Blocked access to external URL https://www.localhost:9443/fetch/api/resources/inspect-headers.py?cors&headers=referer
-FAIL Request's referrer is origin promise_test: Unhandled rejection with value: object "TypeError: Type error"
+FAIL Request's referrer is origin assert_equals: request's referrer is http://localhost:8800/ expected "http://localhost:8800/" but got "http://localhost:8800/fetch/api/policies/referrer-origin-when-cross-origin.js?pipe=sub"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.html (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.html 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.html 2020-01-27 08:10:21 UTC (rev 255138)
@@ -7,6 +7,7 @@
<meta name="help" href=""
<script src=""
<script src=""
+ <script src=""
</head>
<body>
<script src=""
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.js (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.js 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin.js 2020-01-27 08:10:21 UTC (rev 255138)
@@ -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 @@
}
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) {
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin.js (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin.js 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin.js 2020-01-27 08:10:21 UTC (rev 255138)
@@ -19,7 +19,7 @@
}, "Request's referrer is origin");
promise_test(function(test) {
- var referrerUrl = "https://{{domains[www]}}:{{ports[https][0]}}/";
+ var referrerUrl = "https://{{hosts[alt][]}}:{{ports[https][0]}}/";
return fetch(fetchedUrl, { "referrer": referrerUrl }).then(function(resp) {
assert_equals(resp.status, 200, "HTTP status is 200");
assert_equals(resp.type , "basic", "Response's type is basic");
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https.html (255137 => 255138)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https.html 2020-01-27 06:30:44 UTC (rev 255137)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https.html 2020-01-27 08:10:21 UTC (rev 255138)
@@ -12,7 +12,7 @@
</head>
<body>
<script>
- service_worker_test("referrer-unsafe-url.js?pipe=sub");
+ service_worker_test("referrer-unsafe-url.js");
</script>
</body>
</html>