From b946746e5eb5e1423cc3776b645966ee5edfc2cf Mon Sep 17 00:00:00 2001 From: Eriko Kurimoto Date: Tue, 28 Apr 2020 11:46:01 +0000 Subject: [PATCH] Bug 1624639 [wpt PR 22420] - UpgradeInsecureRequest: Add WPTs for static-import in dedicated/shared workers, a=testonly Automatic update from web-platform-tests UpgradeInsecureRequest: Add WPTs for static-import in dedicated/shared workers This CL adds upgrade-insecure-request wpts to test static-import from dedicated workers and shared workers. The test scheme is implemented in the previous CL: https://chromium-review.googlesource.com/c/chromium/src/+/2102036. This CL only removes 'worker-import' and 'sharedworker-import' from the excluded subresource list in spec.src.json and auto-generates tests. Bug: 989399 Change-Id: I3b799d7743306a8b5fca0d7292360a88d9b36ded Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2117591 Reviewed-by: Hiroki Nakagawa Reviewed-by: Hiroshige Hayashizaki Commit-Queue: Eriko Kurimoto Cr-Commit-Position: refs/heads/master@{#753164} -- wpt-commits: 19a0095b86b988a1afa5833c691a102ccde8cd68 wpt-pr: 22420 --- .../unset/sharedworker-import.https.html | 112 +++++++++++++++++ .../unset/worker-import.https.html | 112 +++++++++++++++++ .../upgrade/sharedworker-import.https.html | 113 ++++++++++++++++++ .../upgrade/worker-import.https.html | 113 ++++++++++++++++++ .../unset/sharedworker-import.https.html | 112 +++++++++++++++++ .../unset/worker-import.https.html | 112 +++++++++++++++++ .../upgrade/sharedworker-import.https.html | 113 ++++++++++++++++++ .../upgrade/worker-import.https.html | 113 ++++++++++++++++++ .../upgrade/sharedworker-import.https.html | 82 +++++++++++++ .../sharedworker-import.https.html.headers | 1 + .../upgrade/worker-import.https.html | 82 +++++++++++++ .../upgrade/worker-import.https.html.headers | 1 + .../unset/sharedworker-import.https.html | 82 +++++++++++++ .../top.meta/unset/worker-import.https.html | 82 +++++++++++++ .../upgrade/sharedworker-import.https.html | 83 +++++++++++++ .../top.meta/upgrade/worker-import.https.html | 83 +++++++++++++ .../upgrade-insecure-requests/spec.src.json | 4 +- 17 files changed, 1397 insertions(+), 3 deletions(-) create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/worker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/worker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/worker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/worker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html.headers create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html.headers create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/worker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/sharedworker-import.https.html create mode 100644 testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/worker-import.https.html diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/sharedworker-import.https.html new file mode 100644 index 000000000000..70ccb7af79bb --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/sharedworker-import.https.html @@ -0,0 +1,112 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/worker-import.https.html new file mode 100644 index 000000000000..d9f3a8cd2309 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/unset/worker-import.https.html @@ -0,0 +1,112 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/sharedworker-import.https.html new file mode 100644 index 000000000000..23ccc739e979 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/sharedworker-import.https.html @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/worker-import.https.html new file mode 100644 index 000000000000..17a9e122503b --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/iframe-blank-inherit.meta/upgrade/worker-import.https.html @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/sharedworker-import.https.html new file mode 100644 index 000000000000..754365142a53 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/sharedworker-import.https.html @@ -0,0 +1,112 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/worker-import.https.html new file mode 100644 index 000000000000..8472deaee080 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/unset/worker-import.https.html @@ -0,0 +1,112 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/sharedworker-import.https.html new file mode 100644 index 000000000000..b2444a8c8ae9 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/sharedworker-import.https.html @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/worker-import.https.html new file mode 100644 index 000000000000..a8370a0a6f87 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/srcdoc-inherit.meta/upgrade/worker-import.https.html @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html new file mode 100644 index 000000000000..3041d08f1831 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html.headers b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html.headers new file mode 100644 index 000000000000..602d9dc38d0a --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/sharedworker-import.https.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: upgrade-insecure-requests diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html new file mode 100644 index 000000000000..7098954a871e --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html.headers b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html.headers new file mode 100644 index 000000000000..602d9dc38d0a --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.http-rp/upgrade/worker-import.https.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: upgrade-insecure-requests diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/sharedworker-import.https.html new file mode 100644 index 000000000000..fbba95b65acd --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/sharedworker-import.https.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/worker-import.https.html new file mode 100644 index 000000000000..4743c2c91038 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/unset/worker-import.https.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/sharedworker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/sharedworker-import.https.html new file mode 100644 index 000000000000..eea7d4dc6389 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/sharedworker-import.https.html @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/worker-import.https.html b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/worker-import.https.html new file mode 100644 index 000000000000..020dc7946d95 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/gen/top.meta/upgrade/worker-import.https.html @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/upgrade-insecure-requests/spec.src.json b/testing/web-platform/tests/upgrade-insecure-requests/spec.src.json index 0b987d76b7c0..283147af55bc 100644 --- a/testing/web-platform/tests/upgrade-insecure-requests/spec.src.json +++ b/testing/web-platform/tests/upgrade-insecure-requests/spec.src.json @@ -144,9 +144,7 @@ "object-tag", "picture-tag", "script-tag", - "sharedworker-import", - "video-tag", - "worker-import" + "video-tag" ], "origin": "*", "expectation": "*"