WebKit Bugzilla
Attachment 343576 Details for
Bug 187030
: Add Cross-Origin-Resource-Policy tests for workers and service workers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-187030-20180625201111.patch (text/plain), 21.47 KB, created by
youenn fablet
on 2018-06-25 20:11:12 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
youenn fablet
Created:
2018-06-25 20:11:12 PDT
Size:
21.47 KB
patch
obsolete
>Subversion Revision: 233130 >diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog >index 12f8e3c99d26fef10c638e4958e524c48bc662f5..733e16553dc26629c3b3bf21dc563c963b1fcde1 100644 >--- a/LayoutTests/imported/w3c/ChangeLog >+++ b/LayoutTests/imported/w3c/ChangeLog >@@ -1,3 +1,18 @@ >+2018-06-25 Youenn Fablet <youenn@apple.com> >+ >+ Add Cross-Origin-Resource-Policy tests for workers and service workers >+ https://bugs.webkit.org/show_bug.cgi?id=187030 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker-expected.txt: Added. >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker.html: Added. >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch.any-expected.txt: Added. >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.html: Added. >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.html. >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker-expected.txt: Added. >+ * web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker.html: Added. >+ > 2018-06-25 Youenn Fablet <youenn@apple.com> > > Import wpt CORP tests >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..6a74999bf49eca765aaa2a438bdeb85b2057f879 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker-expected.txt >@@ -0,0 +1,15 @@ >+ >+PASS fetch.any.js test >+PASS Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Valid cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a redirection. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a cross-origin redirection. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' redirect response header. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker.html >new file mode 100644 >index 0000000000000000000000000000000000000000..e493904e2dc6487027a8b1e6351b3f1a81e34de3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch-in-service-worker.html >@@ -0,0 +1,12 @@ >+<!DOCTYPE html> >+<title>Cross-Origin-Resource-Policy in Service Worker</title> >+<script src="/resources/testharness.js"></script> >+<script src="/resources/testharnessreport.js"></script> >+<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script> >+<script> >+ >+service_worker_test( >+ 'fetch.any.js', >+ 'fetch.any.js test'); >+ >+</script> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..edd9452ecf9367e6458d13334a947db02a91ed17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any-expected.txt >@@ -0,0 +1,26 @@ >+CONSOLE MESSAGE: Cancelled load to http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin because it violates the resource's Cross-Origin-Resource-Policy response header. >+CONSOLE MESSAGE: Fetch API cannot load http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin due to access control checks. >+CONSOLE MESSAGE: Cancelled load to http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-site because it violates the resource's Cross-Origin-Resource-Policy response header. >+CONSOLE MESSAGE: Fetch API cannot load http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-site due to access control checks. >+CONSOLE MESSAGE: Cancelled load to https://localhost:9443/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin because it violates the resource's Cross-Origin-Resource-Policy response header. >+CONSOLE MESSAGE: Fetch API cannot load https://localhost:9443/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin due to access control checks. >+CONSOLE MESSAGE: Cancelled load to http://localhost:8801/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin because it violates the resource's Cross-Origin-Resource-Policy response header. >+CONSOLE MESSAGE: Fetch API cannot load http://localhost:8801/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin due to access control checks. >+CONSOLE MESSAGE: Cancelled load to http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin because it violates the resource's Cross-Origin-Resource-Policy response header. >+CONSOLE MESSAGE: Fetch API cannot load http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin due to access control checks. >+CONSOLE MESSAGE: Cross-origin redirection to http://localhost:8800/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-origin denied by Cross-Origin Resource Sharing policy: Cancelled load to http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/redirect.py?corp=same-origin&redirectTo=http%3A%2F%2Flocalhost%3A8800%2Ffetch%2Fcross-origin-resource-policy%2Fresources%2Fhello.py%3Fcorp%3Dsame-origin because it violates the resource's Cross-Origin-Resource-Policy response header. >+CONSOLE MESSAGE: Fetch API cannot load http://127.0.0.1:8800/fetch/cross-origin-resource-policy/resources/redirect.py?corp=same-origin&redirectTo=http%3A%2F%2Flocalhost%3A8800%2Ffetch%2Fcross-origin-resource-policy%2Fresources%2Fhello.py%3Fcorp%3Dsame-origin due to access control checks. >+ >+PASS Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Valid cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a redirection. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a cross-origin redirection. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' redirect response header. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.html >new file mode 100644 >index 0000000000000000000000000000000000000000..9ec70b26b7dd0fed6ae6a9a3112e76457598d0cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.html >@@ -0,0 +1 @@ >+<!-- This file is required for WebKit test infrastructure to run the templated test --> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.js b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.js >new file mode 100644 >index 0000000000000000000000000000000000000000..758c52a695a03e8ee78c038bc2316fb7808f7fa1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.js >@@ -0,0 +1,80 @@ >+// META: script=/common/get-host-info.sub.js >+// META: script=/resources/testharness.js >+ >+if (!self.document) { >+ importScripts("/resources/testharness.js"); >+ importScripts("/common/get-host-info.sub.js"); >+} >+ >+const host = get_host_info(); >+const path = "/fetch/cross-origin-resource-policy/"; >+const localBaseURL = host.HTTP_ORIGIN + path; >+const sameSiteBaseURL = "http://" + host.ORIGINAL_HOST + ":" + host.HTTP_PORT2 + path; >+const notSameSiteBaseURL = host.HTTP_NOTSAMESITE_ORIGIN + path; >+const httpsBaseURL = host.HTTPS_ORIGIN + path; >+ >+promise_test(async () => { >+ const response = await fetch("./resources/hello.py?corp=same-origin"); >+ assert_equals(await response.text(), "hello"); >+}, "Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >+ >+promise_test(async () => { >+ const response = await fetch("./resources/hello.py?corp=same-site"); >+ assert_equals(await response.text(), "hello"); >+}, "Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >+ >+promise_test(async (test) => { >+ const response = await fetch(notSameSiteBaseURL + "resources/hello.py?corp=same-origin"); >+ assert_equals(await response.text(), "hello"); >+}, "Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >+ >+promise_test(async (test) => { >+ const response = await fetch(notSameSiteBaseURL + "resources/hello.py?corp=same-site"); >+ assert_equals(await response.text(), "hello"); >+}, "Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >+ >+promise_test((test) => { >+ const remoteURL = notSameSiteBaseURL + "resources/hello.py?corp=same-origin"; >+ return promise_rejects(test, new TypeError, fetch(remoteURL, { mode : "no-cors" })); >+}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >+ >+promise_test((test) => { >+ const remoteURL = notSameSiteBaseURL + "resources/hello.py?corp=same-site"; >+ return promise_rejects(test, new TypeError, fetch(remoteURL, { mode: "no-cors" })); >+}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >+ >+promise_test((test) => { >+ const remoteURL = httpsBaseURL + "resources/hello.py?corp=same-site"; >+ return fetch(remoteURL, { mode: "no-cors" }); >+}, "Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-site' response header."); >+ >+promise_test((test) => { >+ const remoteURL = httpsBaseURL + "resources/hello.py?corp=same-origin"; >+ return promise_rejects(test, new TypeError, fetch(remoteURL, { mode : "no-cors" })); >+}, "Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >+ >+promise_test(async (test) => { >+ const remoteSameSiteURL = sameSiteBaseURL + "resources/hello.py?corp=same-site"; >+ >+ await fetch(remoteSameSiteURL, { mode: "no-cors" }); >+ >+ return promise_rejects(test, new TypeError, fetch(sameSiteBaseURL + "resources/hello.py?corp=same-origin", { mode: "no-cors" })); >+}, "Valid cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >+ >+promise_test((test) => { >+ const finalURL = notSameSiteBaseURL + "resources/hello.py?corp=same-origin"; >+ return promise_rejects(test, new TypeError, fetch("resources/redirect.py?redirectTo=" + encodeURIComponent(finalURL), { mode: "no-cors" })); >+}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a redirection."); >+ >+promise_test((test) => { >+ const finalURL = localBaseURL + "resources/hello.py?corp=same-origin"; >+ return fetch(notSameSiteBaseURL + "resources/redirect.py?redirectTo=" + encodeURIComponent(finalURL), { mode: "no-cors" }); >+}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a cross-origin redirection."); >+ >+promise_test(async (test) => { >+ const finalURL = localBaseURL + "resources/hello.py?corp=same-origin"; >+ >+ await fetch(finalURL, { mode: "no-cors" }); >+ >+ return promise_rejects(test, new TypeError, fetch(notSameSiteBaseURL + "resources/redirect.py?corp=same-origin&redirectTo=" + encodeURIComponent(finalURL), { mode: "no-cors" })); >+}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' redirect response header."); >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..5c6ff031722cc1cea3e3761af71be6bbdbd7ccd3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker-expected.txt >@@ -0,0 +1,14 @@ >+ >+PASS Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+FAIL Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. promise_test: Unhandled rejection with value: object "TypeError: URL is not valid or contains user credentials." >+FAIL Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. promise_test: Unhandled rejection with value: object "TypeError: URL is not valid or contains user credentials." >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. >+FAIL Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-site' response header. promise_test: Unhandled rejection with value: object "TypeError: URL is not valid or contains user credentials." >+PASS Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-origin' response header. >+FAIL Valid cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header. promise_test: Unhandled rejection with value: object "TypeError: URL is not valid or contains user credentials." >+PASS Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a redirection. >+FAIL Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a cross-origin redirection. promise_test: Unhandled rejection with value: object "TypeError: URL is not valid or contains user credentials." >+FAIL Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' redirect response header. promise_test: Unhandled rejection with value: object "TypeError: URL is not valid or contains user credentials." >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker.html >new file mode 100644 >index 0000000000000000000000000000000000000000..9ec70b26b7dd0fed6ae6a9a3112e76457598d0cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.any.worker.html >@@ -0,0 +1 @@ >+<!-- This file is required for WebKit test infrastructure to run the templated test --> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.html b/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.html >deleted file mode 100644 >index 7cf8d60050aa7b634a92ec3831c30820a634ff44..0000000000000000000000000000000000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/fetch/cross-origin-resource-policy/fetch.html >+++ /dev/null >@@ -1,83 +0,0 @@ >-<!DOCTYPE html> >-<html> >-<head> >- <script src="/resources/testharness.js"></script> >- <script src="/resources/testharnessreport.js"></script> >- <script src="/common/get-host-info.sub.js"></script> >-</head> >-<body> >- <script> >-const host = get_host_info(); >-const localBaseURL = host.HTTP_ORIGIN + window.location.pathname.replace(/\/[^\/]*$/, '/') ; >-const sameSiteBaseURL = "http://" + host.ORIGINAL_HOST + ":" + host.HTTP_PORT2 + window.location.pathname.replace(/\/[^\/]*$/, '/') ; >-const notSameSiteBaseURL = host.HTTP_NOTSAMESITE_ORIGIN + window.location.pathname.replace(/\/[^\/]*$/, '/') ; >-const httpsBaseURL = host.HTTPS_ORIGIN + window.location.pathname.replace(/\/[^\/]*$/, '/') ; >- >-promise_test(async () => { >- const response = await fetch("./resources/hello.py?corp=same-origin"); >- assert_equals(await response.text(), "hello"); >-}, "Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >- >-promise_test(async () => { >- const response = await fetch("./resources/hello.py?corp=same-site"); >- assert_equals(await response.text(), "hello"); >-}, "Same-origin fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >- >-promise_test(async (test) => { >- const response = await fetch(notSameSiteBaseURL + "resources/hello.py?corp=same-origin"); >- assert_equals(await response.text(), "hello"); >-}, "Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >- >-promise_test(async (test) => { >- const response = await fetch(notSameSiteBaseURL + "resources/hello.py?corp=same-site"); >- assert_equals(await response.text(), "hello"); >-}, "Cross-origin cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >- >-promise_test((test) => { >- const remoteURL = notSameSiteBaseURL + "resources/hello.py?corp=same-origin"; >- return promise_rejects(test, new TypeError, fetch(remoteURL, { mode : "no-cors" })); >-}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >- >-promise_test((test) => { >- const remoteURL = notSameSiteBaseURL + "resources/hello.py?corp=same-site"; >- return promise_rejects(test, new TypeError, fetch(remoteURL, { mode: "no-cors" })); >-}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >- >-promise_test((test) => { >- const remoteURL = httpsBaseURL + "resources/hello.py?corp=same-site"; >- return fetch(remoteURL, { mode: "no-cors" }); >-}, "Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-site' response header."); >- >-promise_test((test) => { >- const remoteURL = httpsBaseURL + "resources/hello.py?corp=same-origin"; >- return promise_rejects(test, new TypeError, fetch(remoteURL, { mode : "no-cors" })); >-}, "Cross-origin no-cors fetch to a same-site URL with a 'Cross-Origin-Resource-Policy: same-origin' response header."); >- >-promise_test(async (test) => { >- const remoteSameSiteURL = sameSiteBaseURL + "resources/hello.py?corp=same-site"; >- >- await fetch(remoteSameSiteURL, { mode: "no-cors" }); >- >- return promise_rejects(test, new TypeError, fetch(sameSiteBaseURL + "resources/hello.py?corp=same-origin", { mode: "no-cors" })); >-}, "Valid cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-site' response header."); >- >-promise_test((test) => { >- const finalURL = notSameSiteBaseURL + "resources/hello.py?corp=same-origin"; >- return promise_rejects(test, new TypeError, fetch("resources/redirect.py?redirectTo=" + encodeURIComponent(finalURL), { mode: "no-cors" })); >-}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a redirection."); >- >-promise_test((test) => { >- const finalURL = localBaseURL + "resources/hello.py?corp=same-origin"; >- return fetch(notSameSiteBaseURL + "resources/redirect.py?redirectTo=" + encodeURIComponent(finalURL), { mode: "no-cors" }); >-}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' response header after a cross-origin redirection."); >- >-promise_test(async (test) => { >- const finalURL = localBaseURL + "resources/hello.py?corp=same-origin"; >- >- await fetch(finalURL, { mode: "no-cors" }); >- >- return promise_rejects(test, new TypeError, fetch(notSameSiteBaseURL + "resources/redirect.py?corp=same-origin&redirectTo=" + encodeURIComponent(finalURL), { mode: "no-cors" })); >-}, "Cross-origin no-cors fetch with a 'Cross-Origin-Resource-Policy: same-origin' redirect response header."); >- </script> >-</body> >-</html>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 187030
:
343576
|
343690
|
343723
|
343737