Bug 179653

Summary: Give a ServiceWorker WebContentProcess a different display name
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: WebKit Misc.Assignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, beidson, buildbot, cdumez, commit-queue, ggaren, joepeck, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[PATCH] Proposed Fix
beidson: review+
[PATCH] For Landing none

Description Joseph Pecoraro 2017-11-13 20:22:02 PST
Give a ServiceWorker WebContentProcess a different display name

So in Activity Monitor it will show up like "Safari Service Worker" instead of "Safari Web Content".
Comment 1 Joseph Pecoraro 2017-11-13 20:30:21 PST
Created attachment 326845 [details]
[PATCH] Proposed Fix
Comment 2 youenn fablet 2017-11-13 20:31:50 PST
definitely good to have!
Comment 3 Build Bot 2017-11-13 20:32:16 PST
Attachment 326845 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.h:36:  The parameter name "pool" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.h:36:  The parameter name "store" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 2 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Brady Eidson 2017-11-13 22:14:05 PST
Comment on attachment 326845 [details]
[PATCH] Proposed Fix

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

> Source/WebKit/UIProcess/ServiceWorkerProcessProxy.h:36
> +    static Ref<ServiceWorkerProcessProxy> create(WebProcessPool& pool, WebsiteDataStore& store);

Obey stylebot
Comment 5 Joseph Pecoraro 2017-11-13 23:01:11 PST
Created attachment 326861 [details]
[PATCH] For Landing
Comment 6 WebKit Commit Bot 2017-11-13 23:34:09 PST
Comment on attachment 326861 [details]
[PATCH] For Landing

Clearing flags on attachment: 326861

Committed r224806: <https://trac.webkit.org/changeset/224806>
Comment 7 Radar WebKit Bug Importer 2017-11-15 09:32:26 PST
<rdar://problem/35561897>