Bug 184374 - Pass FetchOptions and SecurityOrigin as load parameters from WebProcess to NetworkProcess
Summary: Pass FetchOptions and SecurityOrigin as load parameters from WebProcess to Ne...
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: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-04-06 17:38 PDT by youenn fablet
Modified: 2018-04-11 12:06 PDT (History)
5 users (show)

See Also:


Attachments
Patch (31.25 KB, patch)
2018-04-06 17:43 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (33.38 KB, patch)
2018-04-10 16:58 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (32.65 KB, patch)
2018-04-10 17:06 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (33.21 KB, patch)
2018-04-10 17:17 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Rebased (33.24 KB, patch)
2018-04-11 11:09 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2018-04-06 17:38:49 PDT
Pass FetchOptions and SecurityOrigin as load parameters from WebProcess to NetworkProcess
Comment 1 youenn fablet 2018-04-06 17:43:03 PDT
Created attachment 337404 [details]
Patch
Comment 2 Chris Dumez 2018-04-10 14:23:17 PDT
Comment on attachment 337404 [details]
Patch

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

Looks good overall but I have one concern.

> Source/WebKit/NetworkProcess/NetworkResourceLoadParameters.cpp:91
> +        encoder << sourceOrigin->enforcesFilePathSeparation();

Why are we doing this here instead of introducing a (reusable) encoder / decoder for SecurityOrigin class? This looks like a lot of code here for SecurityOrigin internals.
Comment 3 youenn fablet 2018-04-10 14:47:10 PDT
(In reply to Chris Dumez from comment #2)
> Comment on attachment 337404 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=337404&action=review
> 
> Looks good overall but I have one concern.
> 
> > Source/WebKit/NetworkProcess/NetworkResourceLoadParameters.cpp:91
> > +        encoder << sourceOrigin->enforcesFilePathSeparation();
> 
> Why are we doing this here instead of introducing a (reusable) encoder /
> decoder for SecurityOrigin class? This looks like a lot of code here for
> SecurityOrigin internals.

The reason is that this currently does not serialize every SecurityOrigin bit, some being only needed for StorageProcess for instance.

I will try to update SecurityOrigin to serialize every bit and add the encoder/decoder in SecurityOrigin.h/.cpp directly.
Comment 4 youenn fablet 2018-04-10 16:58:52 PDT
Created attachment 337656 [details]
Patch
Comment 5 youenn fablet 2018-04-10 17:06:23 PDT
Created attachment 337657 [details]
Patch
Comment 6 youenn fablet 2018-04-10 17:17:18 PDT
Created attachment 337658 [details]
Patch
Comment 7 WebKit Commit Bot 2018-04-11 10:28:07 PDT
Comment on attachment 337658 [details]
Patch

Rejecting attachment 337658 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 337658, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
ce/WebKit/NetworkProcess/NetworkResourceLoader.cpp
Hunk #1 succeeded at 472 (offset 1 line).
patching file Source/WebKit/NetworkProcess/PingLoad.cpp
patching file Source/WebKit/NetworkProcess/PingLoad.h
patching file Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp
patching file Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Chris Dumez']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/7285010
Comment 8 youenn fablet 2018-04-11 11:09:26 PDT
Created attachment 337717 [details]
Rebased
Comment 9 WebKit Commit Bot 2018-04-11 12:05:14 PDT
Comment on attachment 337717 [details]
Rebased

Clearing flags on attachment: 337717

Committed r230541: <https://trac.webkit.org/changeset/230541>
Comment 10 WebKit Commit Bot 2018-04-11 12:05:15 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2018-04-11 12:06:16 PDT
<rdar://problem/39356170>