Bug 239846

Summary: Register shared workers as service worker clients
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Description youenn fablet 2022-04-28 05:17:08 PDT
Register shared workers as service worker clients
Comment 1 youenn fablet 2022-04-28 05:21:48 PDT
Created attachment 458518 [details]
Patch
Comment 2 youenn fablet 2022-04-28 05:48:12 PDT
Created attachment 458522 [details]
Patch
Comment 3 Chris Dumez 2022-04-28 10:56:08 PDT
Comment on attachment 458522 [details]
Patch

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

> Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:52
> +    WEBCORE_EXPORT static bool isEmpty();

This function name is super confusing. What does it mean for a SharedWorkerProxy to be empty?
I'd suggest something like hasInstances() but I'd be open to suggestions. I don't think we should land "isEmpty()" though.
Comment 4 youenn fablet 2022-04-28 23:34:28 PDT
(In reply to Chris Dumez from comment #3)
> Comment on attachment 458522 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=458522&action=review
> 
> > Source/WebCore/workers/shared/context/SharedWorkerThreadProxy.h:52
> > +    WEBCORE_EXPORT static bool isEmpty();
> 
> This function name is super confusing. What does it mean for a
> SharedWorkerProxy to be empty?
> I'd suggest something like hasInstances() but I'd be open to suggestions. I
> don't think we should land "isEmpty()" though.

Agreed hasInstances is better
Comment 5 youenn fablet 2022-05-02 07:11:04 PDT
Created attachment 458678 [details]
Patch
Comment 6 EWS 2022-05-02 09:30:58 PDT
Committed r293665 (250169@main): <https://commits.webkit.org/250169@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 458678 [details].
Comment 7 Radar WebKit Bug Importer 2022-05-02 09:31:16 PDT
<rdar://problem/92612581>