This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Within a ServiceWorker's global scope, there's clients.openWindow(url) which returns a promise indicating success/failure. This allows a ServiceWorker to open a window in reaction to particular interaction events, of which is currently only notificationclick. Currently I'm having to duplicate step 12 of https://html.spec.whatwg.org/multipage/browsers.html#dom-open, can this be abstracted out to avoid duplication? The ServiceWorker can open pages from any origin (although it may not control the loading of it), so opening "about:blank" is allowed unless we specifically disallow it.
Jake, if you could, a PR with some additional context would be appreciated.
Closing per IRC discussion. Jake will create a PR when the need comes up.