Bug 179649 - Send ServiceWorkerData structs to the WebProcesses instead of ServiceWorkerIdentifiers
Summary: Send ServiceWorkerData structs to the WebProcesses instead of ServiceWorkerId...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-11-13 19:06 PST by Chris Dumez
Modified: 2017-11-15 09:32 PST (History)
5 users (show)

See Also:


Attachments
Patch (78.02 KB, patch)
2017-11-13 19:45 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (54.23 KB, patch)
2017-11-13 20:24 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2017-11-13 19:06:43 PST
Send ServiceWorkerData structs to the WebProcesses instead of ServiceWorkerIdentifiers so that the WebProcesses can correctly construct ServiceWorker objects, with the right attributes / state.
Comment 1 Chris Dumez 2017-11-13 19:45:16 PST
Created attachment 326840 [details]
Patch
Comment 2 Chris Dumez 2017-11-13 20:24:51 PST
Created attachment 326844 [details]
Patch
Comment 3 Brady Eidson 2017-11-13 22:02:08 PST
Comment on attachment 326844 [details]
Patch

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

> Source/WebCore/workers/service/ServiceWorkerData.cpp:40
> +    return {
> +        identifier,
> +        scriptURL.isolatedCopy(),
> +        state,
> +        type
> +    };

We don't normally multi-line something like this.
Comment 4 Chris Dumez 2017-11-13 22:04:42 PST
Comment on attachment 326844 [details]
Patch

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

>> Source/WebCore/workers/service/ServiceWorkerData.cpp:40
>> +    };
> 
> We don't normally multi-line something like this.

I followed your pattern in ServiceWorkerRegistrationData :P
Comment 5 Brady Eidson 2017-11-13 22:12:34 PST
(In reply to Chris Dumez from comment #4)
> Comment on attachment 326844 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=326844&action=review
> 
> >> Source/WebCore/workers/service/ServiceWorkerData.cpp:40
> >> +    };
> > 
> > We don't normally multi-line something like this.
> 
> I followed your pattern in ServiceWorkerRegistrationData :P

I think I multilined that because it was so many more thingies.

But probably shouldn't have. :)
Comment 6 WebKit Commit Bot 2017-11-13 22:21:47 PST
Comment on attachment 326844 [details]
Patch

Clearing flags on attachment: 326844

Committed r224804: <https://trac.webkit.org/changeset/224804>
Comment 7 WebKit Commit Bot 2017-11-13 22:21:49 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2017-11-15 09:32:34 PST
<rdar://problem/35561904>