Bug 1651885 [wpt PR 24552] - [COOP report] Add support for report-only, a=testonly

Automatic update from web-platform-tests
[COOP report] Add support for report-only

This adds the support for report-only COOP triggered Browsing context
group switches.
During navigation, besides computing whether COOP triggers a BCG switch,
this also computes if any of the report-only policies would also trigger
a switch if they were effective, the resulting values are stored in
booleans within |CrossOriginOpenerPolicyStatus|.
This booleans are then used to trigger the navigation reports, and in a
follow up to trigger access reports.

Explainer [WIP]:
https://github.com/camillelamy/explainers/blob/master/coop_reporting.md

Specification [WIP]:
https://github.com/whatwg/html/pull/5518

Bug: 1099208
Change-Id: I2cb66ec5cdcd9d5b4658c28f0608bc6b52d0da6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241529
Commit-Queue: Pâris Meuleman <pmeuleman@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Arthur Hemery <ahemery@chromium.org>
Auto-Submit: Pâris Meuleman <pmeuleman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790781}

--

wpt-commits: 969178e38dd571ff68b74322430ecdf572abe2a3
wpt-pr: 24552
This commit is contained in:
Pâris MEULEMAN 2020-07-30 13:04:29 +00:00 коммит произвёл moz-wptsync-bot
Родитель 2bda00b21a
Коммит e76574e947
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -111,7 +111,7 @@ let tests = [
SAME_ORIGIN,
"",
"",
`same-origin; report-to="${popupReportEndpoint.name}"`,
`same-origin; report-to="${popupReportOnlyEndpoint.name}"`,
"require-corp",
[
{
@ -127,7 +127,8 @@ let tests = [
"url": `${location.href}`,
"type": "coop"
}
},]
}
]
],
// Open a cross-origin popup with a same-origin COOP report only. A report is
// sent to both this page's endpoint and the popup's.