Bug 232855 - BroadcastChannel is still disabled in service workers
Summary: BroadcastChannel is still disabled in service workers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on: 232693
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-08 15:47 PST by Chris Dumez
Modified: 2021-11-09 14:21 PST (History)
6 users (show)

See Also:


Attachments
Patch (5.12 KB, patch)
2021-11-08 16:20 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (6.23 KB, patch)
2021-11-09 12:07 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-11-08 15:47:10 PST
BroadcastChannel is still disabled in service workers, despite it being enabled globally for WebKit2.
Comment 1 Chris Dumez 2021-11-08 16:20:44 PST
Created attachment 443627 [details]
Patch
Comment 2 Chris Dumez 2021-11-09 12:07:01 PST
Created attachment 443716 [details]
Patch
Comment 3 Darin Adler 2021-11-09 13:49:32 PST
Comment on attachment 443716 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=443716&action=review

> Source/WTF/ChangeLog:9
> +        Turn on BroadcastChannel experimental feature in WebCore since this is the value that Service Workers
> +        end up using. We only need to disable it in WebKitLegacy.

It worries me a little to learn that Service Workers end up using a different set of features than the ones set by WebKit API. Makes me worry about our preferences machinery; is that really OK?
Comment 4 EWS 2021-11-09 14:20:03 PST
Committed r285534 (244051@main): <https://commits.webkit.org/244051@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 443716 [details].
Comment 5 Radar WebKit Bug Importer 2021-11-09 14:21:21 PST
<rdar://problem/85222916>