Bug 180215

Summary: Support serviceWorkerRegistration.update() inside service workers
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, darin, ggaren, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 180255, 180263    
Bug Blocks: 180326    
Attachments:
Description Flags
WIP Patch
none
WIP Patch
none
Patch
none
Patch none

Chris Dumez
Reported 2017-11-30 12:43:51 PST
Support serviceWorkerRegistration.update() inside service workers.
Attachments
WIP Patch (22.66 KB, patch)
2017-12-01 20:05 PST, Chris Dumez
no flags
WIP Patch (25.39 KB, patch)
2017-12-02 13:52 PST, Chris Dumez
no flags
Patch (31.75 KB, patch)
2017-12-02 15:46 PST, Chris Dumez
no flags
Patch (31.72 KB, patch)
2017-12-02 18:31 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2017-12-01 20:05:39 PST
Created attachment 328206 [details] WIP Patch
Chris Dumez
Comment 2 2017-12-02 13:52:57 PST
Created attachment 328252 [details] WIP Patch
Chris Dumez
Comment 3 2017-12-02 15:46:56 PST
Darin Adler
Comment 4 2017-12-02 17:18:51 PST
Comment on attachment 328261 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328261&action=review > Source/WebCore/ChangeLog:10 > + thread safe by hoping to the right thread when necessary. In hopping and hoping, not the same thing ;)
Chris Dumez
Comment 5 2017-12-02 17:35:52 PST
(In reply to Darin Adler from comment #4) > Comment on attachment 328261 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328261&action=review > > > Source/WebCore/ChangeLog:10 > > + thread safe by hoping to the right thread when necessary. In > > hopping and hoping, not the same thing ;) lol, indeed :) Will fix before landing. Thanks for reviewing.
Chris Dumez
Comment 6 2017-12-02 18:31:52 PST
Chris Dumez
Comment 7 2017-12-02 18:32:47 PST
Comment on attachment 328273 [details] Patch Clearing flags on attachment: 328273 Committed r225455: <https://trac.webkit.org/changeset/225455>
Chris Dumez
Comment 8 2017-12-02 18:32:49 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2017-12-02 18:33:26 PST
Simon Fraser (smfr)
Comment 10 2021-04-06 21:14:52 PDT
Comment on attachment 328273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328273&action=review > Source/WebCore/workers/service/ServiceWorkerContainer.cpp:320 > +#ifndef NDEBUG > + ASSERT(m_creationThread == currentThread()); > +#endif Why are these all wrapped in #ifndef NDEBUG ?
Chris Dumez
Comment 11 2021-04-07 08:52:58 PDT
(In reply to Simon Fraser (smfr) from comment #10) > Comment on attachment 328273 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328273&action=review > > > Source/WebCore/workers/service/ServiceWorkerContainer.cpp:320 > > +#ifndef NDEBUG > > + ASSERT(m_creationThread == currentThread()); > > +#endif > > Why are these all wrapped in #ifndef NDEBUG ? I don't see a good reason. This is a bit old but I have no idea why I did that. Anyway, I'll fix it shortly via Bug 224285.
Note You need to log in before you can comment on or make changes to this bug.