Intent to Ship: BroadcastChannel

62 views
Skip to first unread message

Marijn Kruisselbrink

unread,
Jul 14, 2016, 2:03:47 PM7/14/16
to blink-dev, Joshua Bell

Contact emails

m...@chromium.org, jsb...@chromium.org


Spec

https://html.spec.whatwg.org/multipage/comms.html#broadcasting-to-other-browsing-contexts


Summary

BroadcastChannel allows scripts from the same origin but other browsing contexts to send each other messages. Channels are scoped to an origin and have a name, messages posted to a channel will be delivered to all listeners of that channel in all documents.

SharedWorker and/or ServiceWorker allow same-origin messaging but with extra process/thread overhead and script plumbing.


Link to “Intent to Implement” blink-dev discussion

https://groups.google.com/a/chromium.org/d/msg/blink-dev/4LkI_rniKtI/RFRrRFpyZcQJ


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

Yes.


Demo link

No real demos, other than the layout tests.


Interoperability and Compatibility Risk

Firefox already shipped this API over a year in ago in 38. I found some inconsistencies between the spec and their implementation, but those were all minor and got addressed quickly. Currently firefox passes our layout tests, so I'm pretty confident about this.

Unfortunately there are still no signals from other browsers.


OWP launch tracking bug

http://crbug.com/161070 (well, not technically an OWP launch tracking bug. Happy to file another bug if that makes sense).


Entry on the feature dashboard

http://www.chromestatus.com/features/4585496197988352


Dimitri Glazkov

unread,
Jul 14, 2016, 2:18:30 PM7/14/16
to Marijn Kruisselbrink, blink-dev, Joshua Bell
LGTM.

Chris Harrelson

unread,
Jul 14, 2016, 8:48:14 PM7/14/16
to Dimitri Glazkov, Marijn Kruisselbrink, blink-dev, Joshua Bell
LGTM2

LGTM.
--
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.

Hubert SABLONNIERE

unread,
Jul 15, 2016, 4:48:59 AM7/15/16
to blink-dev, jsb...@google.com
This is awesome. Thanks Chrome team !!
I've talked briefly about this a year ago when talking about multi-screen Web apps. This API will help a lot 

Jochen Eisinger

unread,
Jul 15, 2016, 4:50:42 AM7/15/16
to Hubert SABLONNIERE, blink-dev, jsb...@google.com
lgtm3
Reply all
Reply to author
Forward
0 new messages