Bug 179126

Summary: Split JobQueue logic out of SWServerRegistration
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, buildbot, commit-queue, ggaren, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WIP Patch
none
WIP Patch
none
WIP Patch
none
WIP Patch
none
Patch
none
Patch none

Description Chris Dumez 2017-11-01 10:40:56 PDT
Split JobQueue logic out of SWServerRegistration to match the Service Workers specification more closely.
Comment 1 youenn fablet 2017-11-01 11:26:24 PDT
We should probably reuse the registration key and maybe rename it to scope url key since both maps will have the same key
Comment 2 Chris Dumez 2017-11-01 12:05:33 PDT
Will try to keep the patch as small as possible. We can do more refactoring in follow-ups (e.g. getting rid of the background thread).
Comment 3 Chris Dumez 2017-11-01 12:07:55 PDT
Created attachment 325609 [details]
WIP Patch
Comment 4 Chris Dumez 2017-11-01 12:09:34 PDT
Created attachment 325610 [details]
WIP Patch
Comment 5 Build Bot 2017-11-01 12:12:35 PDT
Attachment 325610 [details] did not pass style-queue:


ERROR: Source/WebCore/workers/service/server/SWServerJobQueue.h:52:  The parameter name "data" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Chris Dumez 2017-11-01 12:55:09 PDT
Created attachment 325616 [details]
WIP Patch
Comment 7 Chris Dumez 2017-11-01 13:24:34 PDT
Created attachment 325621 [details]
WIP Patch
Comment 8 Chris Dumez 2017-11-01 13:38:50 PDT
Created attachment 325624 [details]
Patch
Comment 9 Chris Dumez 2017-11-01 14:32:15 PDT
Created attachment 325634 [details]
Patch
Comment 10 Chris Dumez 2017-11-01 14:32:38 PDT
Had to rebaseline because of Brady's patch that just landed.
Comment 11 Chris Dumez 2017-11-01 15:32:47 PDT
Comment on attachment 325634 [details]
Patch

Clearing flags on attachment: 325634

Committed r224301: <https://trac.webkit.org/changeset/224301>
Comment 12 Chris Dumez 2017-11-01 15:32:49 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Radar WebKit Bug Importer 2017-11-15 12:30:22 PST
<rdar://problem/35567575>