<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>161472</bug_id>
          
          <creation_ts>2016-08-31 20:30:44 -0700</creation_ts>
          <short_desc>[META] Implement BroadcastChannel</short_desc>
          <delta_ts>2021-09-15 18:39:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>Safari 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>187001</dependson>
    
    <dependson>227919</dependson>
    
    <dependson>227924</dependson>
    
    <dependson>229814</dependson>
    
    <dependson>230164</dependson>
    
    <dependson>230181</dependson>
    
    <dependson>230235</dependson>
    
    <dependson>230236</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yingle">yljia</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>709922234</cc>
    
    <cc>beidson</cc>
    
    <cc>bugmail</cc>
    
    <cc>cdumez</cc>
    
    <cc>david.fahlander</cc>
    
    <cc>david.malcom.graham</cc>
    
    <cc>edwardjsabol</cc>
    
    <cc>feliziani.emanuele</cc>
    
    <cc>fred.wang</cc>
    
    <cc>ggaren</cc>
    
    <cc>hello</cc>
    
    <cc>ian</cc>
    
    <cc>koddsson</cc>
    
    <cc>lwarlow</cc>
    
    <cc>minijus.l</cc>
    
    <cc>m.kurz+webkitbugs</cc>
    
    <cc>nicolas</cc>
    
    <cc>philip</cc>
    
    <cc>rbuis</cc>
    
    <cc>rniwa</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>tomac</cc>
    
    <cc>yljia</cc>
    
    <cc>youennf</cc>
    
    <cc>yoyo837</cc>
    
    <cc>zac.spitzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1225227</commentid>
    <comment_count>0</comment_count>
    <who name="Yingle">yljia</who>
    <bug_when>2016-08-31 20:30:44 -0700</bug_when>
    <thetext>https://html.spec.whatwg.org/multipage/comms.html#broadcastchannel
https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1436479</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2018-06-26 06:07:11 -0700</bug_when>
    <thetext>Some WPT tests have been imported in 187001, see LayoutTests/imported/w3c/web-platform-tests/webmessaging/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657862</commentid>
    <comment_count>2</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2020-06-01 02:52:20 -0700</bug_when>
    <thetext>Implementing this would also improve some WPT tests that use BroadcastChannel to test some other feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1661135</commentid>
    <comment_count>3</comment_count>
    <who name="Emanuele Feliziani">feliziani.emanuele</who>
    <bug_when>2020-06-10 04:33:51 -0700</bug_when>
    <thetext>This provides a simple way to sync functionality across tabs (especially login/logout). Other browsers have had this for years (see https://hacks.mozilla.org/2015/02/broadcastchannel-api-in-firefox-38/ and https://developers.google.com/web/updates/2016/09/broadcastchannel). I hope this gets prioritized soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1679190</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-08-10 13:56:10 -0700</bug_when>
    <thetext>In order for us to implement this feature, we need to have the partitioning of BroadcastChannel spec&apos;ed since non-partitioned BroadcastChannel would introduce a new tracking vulnerability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680266</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2020-08-14 06:14:56 -0700</bug_when>
    <thetext>The spec issue is tracked in https://github.com/whatwg/html/aissues/5803 now (filed by rniwa)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689220</commentid>
    <comment_count>6</comment_count>
    <who name="Thomas Steiner">tomac</who>
    <bug_when>2020-09-16 14:31:10 -0700</bug_when>
    <thetext>Correct spec issue link: https://github.com/whatwg/html/issues/5803 (there was a superfluous ’a’ in the link in the previous comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731376</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Cooke">hello</who>
    <bug_when>2021-02-19 09:21:13 -0800</bug_when>
    <thetext>Would be great to have this n Safari and not have to fallback to polling IndexedDB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1732803</commentid>
    <comment_count>8</comment_count>
    <who name="David Fahlander">david.fahlander</who>
    <bug_when>2021-02-24 01:18:40 -0800</bug_when>
    <thetext>Communicating between service worker and DOM windows can be essential for sync use cases in PWAs. Safari is the only modern browser not supporting this.

There is a polyfill for this with its limitations: It doesn&apos;t support workers and it doesn&apos;t support structured cloning - https://www.npmjs.com/package/broadcastchannel-polyfill.

Polyfilling it for workers is harder to do.

It would be awesome if BroadcastChannel could soon become present in all modern browsers and if only Safari implements it we would be there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756482</commentid>
    <comment_count>9</comment_count>
    <who name="Thomas Steiner">tomac</who>
    <bug_when>2021-05-04 02:54:06 -0700</bug_when>
    <thetext>(For folks relying on the `BroadcastChannel` polyfill: it&apos;s currently broken in 14.1 due to https://bugs.webkit.org/show_bug.cgi?id=225344.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793933</commentid>
    <comment_count>10</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-09-15 18:39:48 -0700</bug_when>
    <thetext>All implemented via subtasks and enabled by default.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>