Intent to Experiment: COOP: restrict-properties

604 views
Skip to first unread message

Arthur Hemery

unread,
Jun 1, 2023, 3:20:01 AM6/1/23
to blink-dev

Contact emails

ahe...@chromium.org

Explainer

https://github.com/hemeryar/coi-with-popups

Specification

https://github.com/whatwg/html/issues/6364

Summary

Cross-Origin-Opener-Policy is used to sever the relationship between popup and openers, to increase security. "restrict-properties" is a proposed value that restricts the relationship instead of completely severing it. It would enable crossOriginIsolated when paired with COEP.



Blink component

Blink>SecurityFeature>COOP

Search tags

COOPrestrict-properties



Risks



Interoperability and Compatibility

It could fail to become an interoperable part of the web platform if other browsers do not implement it. The OT is intended to gather user feedback to get support from Mozilla.



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals: Have a few partners interested in trying this out like Zoom and Facebook, as well as a couple of internal partners (altimin@ for perfetto dashboards, vickyzhu@ for gmail, etc.).

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Goals for experimentation

The goal for this experiment is to give partners the possibility to try the new value at scale and to discover potential deployment blockers that were not anticipated (e.g. external dependency, same-origin communications required, etc.)


Debuggability

COOP reporting will support restricted cross-origin properties reporting, similar to what exists for other COOP values.


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

COOP is parsed on all platforms, but the process model implied might vary.



Is this feature fully tested by web-platform-tests?

Yes under wpt/html/cross-origin-opener-policy/tentative/restrict-properties.

Flag name

--enable-features='CoopRestrictProperties'

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1221127

Launch bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1347385

Estimated milestones

OriginTrial desktop last119
OriginTrial desktop first116
OriginTrial Android last119
OriginTrial Android first116



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5072630953017344

Links to previous Intent discussions

Previous Intent to experiment, dropped because implementation was incomplete: https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAF07A2UMOnEEY%2BG4bjE6kiPtw9insquxztWYDb%3DE9bnb-_dZow%40mail.gmail.com
Intent
 to prototype: 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAF07A2Uw-Oh0d7ktTPnV%3D8TTrr%2BNcTgfiLxzFd2P2QLD18qNsw%40mail.gmail.com

Mike Taylor

unread,
Jun 1, 2023, 3:17:45 PM6/1/23
to Arthur Hemery, blink-dev

LGTM to experiment from M116 to M119 inclusive.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAF07A2U6Roco9aJwOxCv9vFhXffbOyZDcxiEOKH3cEC6GJsp0w%40mail.gmail.com.

Vipul Anant

unread,
Oct 19, 2023, 11:42:49 AM10/19/23
to blink-dev, Mike Taylor, Arthur Hemery
There are certain use cases that are not solved with postMessage and closed only. There is some requirement to focus (whenever user shifts to some other tab with popup opened in background) & close ( to avoid unnecessary popup window to be remained opened in background),so can we have hese calls supported focus() & close()?

SIDDHESH

unread,
Dec 6, 2023, 11:58:51 AM12/6/23
to blink-dev, Vipul Anant, Mike Taylor, Arthur Hemery
Hi team,
We have an application using SharedArrayBuffer for which we have started using COOP as restrict-properties. However, we are currently facing issue when we open any login pop up, we are not able to focus on it again if user clicks on login button in the main app.

It would be really good if we can get support for focus functionality.

Thanks,
Siddhesh
Reply all
Reply to author
Forward
0 new messages