Bug 1633673 [wpt PR 23288] - COEP ReportingObserver integration, a=testonly
commita7a3a99e3e8bd1a2bc4d36be60e9fabfca862534
authorYutaka Hirano <yhirano@chromium.org>
Wed, 13 May 2020 10:00:41 +0000 (13 10:00 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 14 May 2020 18:55:52 +0000 (14 18:55 +0000)
tree1bd44aa35402d7464fa2077400bf010a5bb7f038
parent47ed50d8e56fc61f7acbf62b3525a4c14385e4d1
Bug 1633673 [wpt PR 23288] - COEP ReportingObserver integration, a=testonly

Automatic update from web-platform-tests
COEP ReportingObserver integration

Notify reports made by COEP to ReportingObservers registered to
documents and service workers.

Support for dedicated workers is blocked on PlzDedicatedWorker.
Support for shared workers is blocked on COEP support for shared
workers.

TESTING:
Now we have two means to test the COEP reporting functionality.
 1. Reports sent to the network.
 2. Reports observed via ReportingObserver

We need to have *some* tests with both ways, but we don't need to test
all the cases for both ways, and generally speaking ReportingObserver
is easier to use, and less flaky. Hence this CL makes
cache-storage-reporting-*.https.html use ReportingObserver. This CL
also adds reporting-subresource-corp.https.html for subresource loading
cases. I'm planning to make more COEP reporting tests use
ReportingObserver in the future.

Bug: 1052764
Change-Id: Idc670bfc957f05aae813c4a3bce7e361293fc716
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2160291
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#767369}

--

wpt-commits: 540f25e22401fe99e72bf6da2cb1ca1748a8ca4f
wpt-pr: 23288
testing/web-platform/tests/html/cross-origin-embedder-policy/cache-storage-reporting-dedicated-worker.https.html
testing/web-platform/tests/html/cross-origin-embedder-policy/cache-storage-reporting-document.https.html
testing/web-platform/tests/html/cross-origin-embedder-policy/cache-storage-reporting-service-worker.https.html
testing/web-platform/tests/html/cross-origin-embedder-policy/cache-storage-reporting-shared-worker.https.html
testing/web-platform/tests/html/cross-origin-embedder-policy/reporting-subresource-corp.https.html [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/resources/cache-storage-reporting.js
testing/web-platform/tests/html/cross-origin-embedder-policy/resources/reporting-worker.js [new file with mode: 0644]
testing/web-platform/tests/lint.ignore