Closed Bug 1835429 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 40252 - COOP: restrict-properties reporting 4/*: Access reporting.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 40252 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/40252
Details from upstream follow.

Arthur Hemery <ahemery@chromium.org> wrote:

COOP: restrict-properties reporting 4/*: Access reporting.

Build on the existing virtual CoopRelatedGroup introduced in the
previous patch to add access reporting for COOP: restrict-properties.

Before installing access monitors, we compute whether the two windows
are in the same virtual CoopRelatedGroup. If so, that means they would
be able to use window.postMessage() and window.closed as usual. We
send the information all the way into the blink::AccessMonitor. When
accesses are about to be reported we verify that we do not fall into
this special case.

Low-Coverage-Reason: DomWindow changes are covered by WPTs.

Bug: 1424417
Change-Id: Icde8310fd269849d0f2c098a4a748eaed1584bcf
Reviewed-on: https://chromium-review.googlesource.com/4542646
WPT-Export-Revision: 90ec0f0df41082ea9274cab65cf9f1b6f2c0f86a

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.