From a8e0eced98502f48bfd75c102839bbc221b647f3 Mon Sep 17 00:00:00 2001 From: elkurin Date: Wed, 26 Feb 2020 10:40:48 +0000 Subject: [PATCH] Bug 1616478 [wpt PR 21877] - Fetch HTTP(S) scheme/data url scripts from data url iframe/dedicated worker/shared worker, a=testonly Automatic update from web-platform-tests Fetch HTTP(S) scheme/data url scripts from data url iframe/dedicated worker/shared worker (#21877) This pull request adds web-platform-tests to check if fetching scripts from data url iframe, dedicated worker or shared worker is appropriately allowed or rejected by CORS. -- wpt-commits: 2be2d7e3abcde5baded3448b85d0bb88e58d3cf7 wpt-pr: 21877 --- .../tests/fetch/api/cors/data-url-iframe.html | 58 +++++++++++++++++++ .../api/cors/data-url-shared-worker.html | 53 +++++++++++++++++ .../tests/fetch/api/cors/data-url-worker.html | 50 ++++++++++++++++ 3 files changed, 161 insertions(+) create mode 100644 testing/web-platform/tests/fetch/api/cors/data-url-iframe.html create mode 100644 testing/web-platform/tests/fetch/api/cors/data-url-shared-worker.html create mode 100644 testing/web-platform/tests/fetch/api/cors/data-url-worker.html diff --git a/testing/web-platform/tests/fetch/api/cors/data-url-iframe.html b/testing/web-platform/tests/fetch/api/cors/data-url-iframe.html new file mode 100644 index 000000000000..217baa3c46b6 --- /dev/null +++ b/testing/web-platform/tests/fetch/api/cors/data-url-iframe.html @@ -0,0 +1,58 @@ + + + + + + diff --git a/testing/web-platform/tests/fetch/api/cors/data-url-shared-worker.html b/testing/web-platform/tests/fetch/api/cors/data-url-shared-worker.html new file mode 100644 index 000000000000..d69748ab261b --- /dev/null +++ b/testing/web-platform/tests/fetch/api/cors/data-url-shared-worker.html @@ -0,0 +1,53 @@ + + + + + diff --git a/testing/web-platform/tests/fetch/api/cors/data-url-worker.html b/testing/web-platform/tests/fetch/api/cors/data-url-worker.html new file mode 100644 index 000000000000..13113e62621a --- /dev/null +++ b/testing/web-platform/tests/fetch/api/cors/data-url-worker.html @@ -0,0 +1,50 @@ + + + + +