Bug 179774

Summary: Make sure service workers get terminated between tests
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, commit-queue, ggaren, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=179748
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2017-11-16 09:10:14 PST
Make sure service workers get terminated between tests.
Comment 1 Chris Dumez 2017-11-16 12:07:06 PST
Created attachment 327093 [details]
Patch
Comment 2 Brady Eidson 2017-11-16 12:32:49 PST
Comment on attachment 327093 [details]
Patch

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

> Source/WebCore/workers/service/server/SWServerJobQueue.cpp:52
> +        clearRegistration(*registration);

What is the intended side effect of clearRegistration?

Is this what is called when a WebPage actually clears its service worker?

If so, this patch would have the side effect of clearing *persistent* registrations too, and we don't want to do this between tests.
Comment 3 Chris Dumez 2017-11-16 13:18:50 PST
Created attachment 327099 [details]
Patch
Comment 4 WebKit Commit Bot 2017-11-16 18:32:16 PST
Comment on attachment 327099 [details]
Patch

Clearing flags on attachment: 327099

Committed r224955: <https://trac.webkit.org/changeset/224955>
Comment 5 WebKit Commit Bot 2017-11-16 18:32:17 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2017-11-16 18:33:19 PST
<rdar://problem/35605947>