Bug 201300

Summary: Make NetworkConnectionToWebProcess keyed by its WebProcess identifier
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 201299    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Fix Wincairo none

Description youenn fablet 2019-08-29 06:03:33 PDT
Make NetworkConnectionToWebProcess keyed by their WebProcess identifier
Comment 1 youenn fablet 2019-08-29 06:14:06 PDT
Created attachment 377572 [details]
Patch
Comment 2 youenn fablet 2019-08-30 03:11:44 PDT
Created attachment 377691 [details]
Patch
Comment 3 youenn fablet 2019-08-30 03:55:17 PDT
Created attachment 377695 [details]
Patch
Comment 4 Alex Christensen 2019-08-30 08:36:38 PDT
Comment on attachment 377695 [details]
Patch

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

> Source/WebKit/NetworkProcess/NetworkProcess.cpp:389
> +    return std::make_pair(socketPair.server, IPC::Attachment { socketPair.client });

You could use {} instead of std::make_pair

> Source/WebKit/NetworkProcess/NetworkProcess.cpp:420
> +        completionHandler({ });

WTF::null opt
Comment 5 youenn fablet 2019-09-01 23:01:39 PDT
(In reply to Alex Christensen from comment #4)
> Comment on attachment 377695 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=377695&action=review
> 
> > Source/WebKit/NetworkProcess/NetworkProcess.cpp:389
> > +    return std::make_pair(socketPair.server, IPC::Attachment { socketPair.client });
> 
> You could use {} instead of std::make_pair

The function returns an Optional<std::pair> so we need to return a pair explicitly here.
Comment 6 youenn fablet 2019-09-01 23:06:48 PDT
Created attachment 377840 [details]
Fix Wincairo
Comment 7 WebKit Commit Bot 2019-09-02 02:31:45 PDT
Comment on attachment 377840 [details]
Fix Wincairo

Clearing flags on attachment: 377840

Committed r249379: <https://trac.webkit.org/changeset/249379>
Comment 8 WebKit Commit Bot 2019-09-02 02:31:47 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2019-09-02 02:32:18 PDT
<rdar://problem/54945251>