Bug 204678

Summary: Move soft update handling to network process
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, dbates, ews-watchlist, mkwst, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 204641    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch for landing none

youenn fablet
Reported 2019-11-28 05:39:59 PST
Move soft update handling to network process
Attachments
Patch (70.08 KB, patch)
2019-11-28 05:43 PST, youenn fablet
no flags
Patch (74.51 KB, patch)
2019-11-28 06:41 PST, youenn fablet
no flags
Patch (75.31 KB, patch)
2019-11-28 08:57 PST, youenn fablet
no flags
Patch (80.68 KB, patch)
2019-11-28 23:10 PST, youenn fablet
no flags
Patch (75.72 KB, patch)
2019-12-03 01:37 PST, youenn fablet
no flags
Patch for landing (75.77 KB, patch)
2019-12-04 03:50 PST, youenn fablet
no flags
youenn fablet
Comment 1 2019-11-28 05:43:21 PST
youenn fablet
Comment 2 2019-11-28 06:41:49 PST
youenn fablet
Comment 3 2019-11-28 08:57:47 PST
youenn fablet
Comment 4 2019-11-28 23:10:35 PST
youenn fablet
Comment 5 2019-12-03 01:37:32 PST
Chris Dumez
Comment 6 2019-12-03 12:00:45 PST
Comment on attachment 384697 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=384697&action=review > Source/WebCore/workers/service/ServiceWorkerJobData.cpp:79 > + return scopeURL == job.scopeURL Some of these checks may need to be case insensitive. > Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerSoftUpdateLoader.h:55 > + ServiceWorkerSoftUpdateLoader(NetworkSession&, WebCore::ServiceWorkerJobData&&, bool shouldRefreshCache, WebCore::ResourceRequest&&, Handler&&); This should probably not be public, as clients are expected to call start().
youenn fablet
Comment 7 2019-12-04 03:19:02 PST
(In reply to Chris Dumez from comment #6) > Comment on attachment 384697 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=384697&action=review > > > Source/WebCore/workers/service/ServiceWorkerJobData.cpp:79 > > + return scopeURL == job.scopeURL > > Some of these checks may need to be case insensitive. Both script and scope are URLs. We do URL string comparison for job when matching registration. 'HTTP://example.org/I' will then have a different scope compared to 'HTTP://example.org/i'. This is consistent. I believe we should do the same for scripts as well. > > Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerSoftUpdateLoader.h:55 > > + ServiceWorkerSoftUpdateLoader(NetworkSession&, WebCore::ServiceWorkerJobData&&, bool shouldRefreshCache, WebCore::ResourceRequest&&, Handler&&); > > This should probably not be public, as clients are expected to call start(). OK
youenn fablet
Comment 8 2019-12-04 03:50:21 PST
Created attachment 384802 [details] Patch for landing
WebKit Commit Bot
Comment 9 2019-12-04 05:47:58 PST
Comment on attachment 384802 [details] Patch for landing Clearing flags on attachment: 384802 Committed r253102: <https://trac.webkit.org/changeset/253102>
WebKit Commit Bot
Comment 10 2019-12-04 05:47:59 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2019-12-04 05:48:18 PST
Note You need to log in before you can comment on or make changes to this bug.