[w3c/ServiceWorker] Define openWindow() better (#1540)

It seems there are several issues:

- [ ] User interaction requirement doesn't integrate with new infrastructure in HTML for that.
- [ ] Top-level browsing context created without encompassing browsing context group.
- [ ] It's not accounted for that the top-level browsing context may end up getting replaced due to COOP.
- [ ] If the service worker is sandboxed through CSP, this doesn't affect this popup.

Some of this could maybe be solved by making this reuse part of https://html.spec.whatwg.org/multipage/browsers.html#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name rather than doing its own thing. Having more shared infrastructure here with HTML should be a goal when fixing this.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1540

Received on Friday, 18 September 2020 15:58:48 UTC