Bug 1618527 [wpt PR 22005] - Introduce COEP reporting for CORP (3/3), a=testonly
commitf19917fc73bd54823eded982d7b8adbb8d2b94bf
authorYutaka Hirano <yhirano@chromium.org>
Thu, 5 Mar 2020 21:35:13 +0000 (5 21:35 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 6 Mar 2020 22:30:10 +0000 (6 22:30 +0000)
treeef5442fa29901358c779adb06106f8579f8bc782
parent61ede851edf9ec69572c6062c25bef901e4acf10
Bug 1618527 [wpt PR 22005] - Introduce COEP reporting for CORP (3/3), a=testonly

Automatic update from web-platform-tests
Introduce COEP reporting for CORP (3/3)

1: https://crrev.com/c/2074177
2: https://crrev.com/c/2075002
3: [this]

This series of CLs implements https://github.com/mikewest/corpp/pull/9.
We introduce network::mojom::CrossOriginEmbedderPolicyReporter and
its implementation content::CrossOriginEmbedderPolicyReporter, implement
the reporting logic in content::CrossOriginEmbedderPolicyReporter and
the CORP check, and plumb the mojo interface.

This CL creates CrossOriginEmbedderPolicyReport during the frame
navigation and dedicated worker initialization, and give it to the
network service so that (possibly potential) CORP blocks are reported.

Bug: 1052764
Change-Id: Ia39ff8277eb23d96025f5e6fba4e5a4fa6ffde70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076223
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747176}

--

wpt-commits: 0d183bf3945eda537d23f8d37afbde1dad982544
wpt-pr: 22005
testing/web-platform/tests/html/cross-origin-embedder-policy/report-only-require-corp.https.html [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/report-only-require-corp.https.html.headers [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/reporting.https.html [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/resources/report.py [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/resources/stash-take.py [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/resources/subresource-corp.html [new file with mode: 0644]
testing/web-platform/tests/html/cross-origin-embedder-policy/resources/subresource-corp.html.sub.headers [new file with mode: 0644]