This CL sends COEP violation reports during the worker initialization
process.
The corresponded spec is here:
https://html.spec.whatwg.org/C/#check-a-global-object's-embedder-policy
> 4. If ownerPolicy's report-only value is "require-corp" and policy's
value is "unsafe-none", then queue a cross-origin embedder policy
inheritance violation with response, "worker initialization", owner's
policy's report only reporting endpoint, "reporting", and owner.
> 6. Queue a cross-origin embedder policy inheritance violation with
response, "worker initialization", owner's policy's reporting endpoint,
"enforce", and owner.
Also adds WPT to check if the owner iframe can observe reports via
ReportingObserver API. Tests pass with PlzDedicatedWorker and fail with
non-PlzDedicatedWorker.
Bug: 1171094, 1060837
Change-Id: Ida5eab351879a6793c412dccc8b0cff38c38e906
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2650015
Commit-Queue: Asami Doi <asamidoi@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#850107}