summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js')
-rw-r--r--testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js b/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js
deleted file mode 100644
index b593fad5a..000000000
--- a/testing/web-platform/tests/fetch/api/policies/referrer-unsafe-url.js
+++ /dev/null
@@ -1,17 +0,0 @@
-if (this.document === undefined) {
- importScripts("/resources/testharness.js");
- importScripts("../resources/utils.js");
-}
-
-var referrerUrl = location.href;
-var fetchedUrl = RESOURCES_DIR + "inspect-headers.py?headers=referer";
-
-promise_test(function(test) {
- return fetch(fetchedUrl).then(function(resp) {
- assert_equals(resp.status, 200, "HTTP status is 200");
- assert_equals(resp.type , "basic", "Response's type is basic");
- assert_equals(resp.headers.get("x-request-referer"), referrerUrl, "request's referrer is " + referrerUrl);
- });
-}, "Request's referrer is the full url of current document/worker");
-
-done();