Bug 204499

Summary: Use SWClientConnection instead of hopping to main thread in ServiceWorkerContainer
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description youenn fablet 2019-11-22 02:21:47 PST
Use SWClientConnection instead of hopping to main thread in ServiceWorkerContainer
Comment 1 youenn fablet 2019-11-22 02:23:46 PST
Created attachment 384136 [details]
Patch
Comment 2 youenn fablet 2019-11-22 02:26:54 PST
Created attachment 384137 [details]
Patch
Comment 3 Chris Dumez 2019-11-22 08:11:49 PST
Comment on attachment 384137 [details]
Patch

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

> Source/WebCore/workers/service/ServiceWorkerContainer.cpp:502
> +    ensureSWClientConnection().failedFetchingScript(job.identifier(), job.data().registrationKey(), error);

SWClientConnection::failedFetchingScript() seems to ASSERT(isMainThread());
Comment 4 youenn fablet 2019-11-22 10:40:14 PST
Created attachment 384168 [details]
Patch
Comment 5 WebKit Commit Bot 2019-11-25 01:13:48 PST
Comment on attachment 384168 [details]
Patch

Clearing flags on attachment: 384168

Committed r252848: <https://trac.webkit.org/changeset/252848>
Comment 6 WebKit Commit Bot 2019-11-25 01:13:50 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2019-11-25 01:14:28 PST
<rdar://problem/57467919>