Contact emails
Spec
Unofficial draft spec: http://mkruisselbrink.github.io/navigator-connect/
Some more background in this document.
Summary
Allow cross-domain postMessage to a Service Worker.
Motivation
Web developers can communicate cross-domain on the client (for example, while the user is offline) using iframes and postMessage (although this isn’t possible from a worker context). Let's simplify this and let a page communicate with another site's Service Worker directly using postMessage.
Compatibility Risk
+ This brand-new feature this is unlikely to break compatibility with existing web content.
+ The API is small: A new method on navigator. The rest is cobbled together out of MessagePorts.
+ If we shipped this feature but regretted it, the API can simply start rejecting the Promise it hands out during the deprecation period. Reasonable use of the API should handle rejection, because the user may not have a Service Worker installed for a particular site anyway.
+ Most of the spec can be polyfilled on top of the existing cross origin iframes and postMessage support (the part that can’t be polyfilled is worker-to-worker communication).
- This feature depends on Service Worker, so cross-browser compatibility will be limited to the degree that browsers implement Service Worker. Mozilla and Chromium are implementing Service Worker currently.
- We haven't taken the temperature of other browser vendors yet.
Ongoing technical constraints
This depends on Service Worker, and might need some small changes to the MessagePort handling code in Chrome.
Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?
Yes.
OWP launch tracking bug?
There isn’t one (there is http://crbug.com/426458, but that isn’t an OWP launch tracking bug).
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5709330426888192
Requesting approval to ship?
No. This will be implemented behind a runtime enabled feature to get feedback from web developers to inform the standards process.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Where is the standards discussion of this? Has it been sent to public-webapps or whatwg yet?
Who is going to work on this? I would rather see more than one engineer working on this, maybe somebody from the service worker team that also is experienced with cross process messaging and security?
I agree that we should start a standards discussion about this rather sooner than later.