Skip to content

Commit

Permalink
[Security] Implement the context switch for COOP.
Browse files Browse the repository at this point in the history
This CL lands the Cross-Origin-Opener-Policy "changes to navigation",
as per: https://gist.github.com/annevk/6f2dd8c79c77123f39797f6bdac43f3e

In practice, it forces a BrowsingInstance switch when we have a COOP
mismatch. This is necessary but not sufficient, as we want to ensure
the following behavior:

(1) window.open() returned WindowProxy is closed when we know that we
need to switch.
(2) opener is null in opened popups.
(3) window.name is empty in opened popups.

This CL solves (2). Currently (1) is untested and will follow in
a different patch (tests under development by pmeuleman@ at
#21161) and (2) needs to
be updated with some other state in DidCommit.

Bug:922191
Change-Id: I7d5169f7d53bfc28ea01a1a03c7658e0645bc492
  • Loading branch information
hemeryar authored and chromium-wpt-export-bot committed Jan 27, 2020
1 parent 4fe4d78 commit 55b5cfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
run_coop_test_iframe("same-origin", value[0], value[1], value[2], value[3], value[4]);
});

</script>
</script>

0 comments on commit 55b5cfe

Please sign in to comment.