Chromium Code Reviews| Index: content/browser/loader/resource_dispatcher_host_impl.cc |
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc |
| index e9178424ff40acb438828b73b743ab27da641473..aae06d225c55596842442ab7e3e5fea9d6bca2c2 100644 |
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc |
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
| @@ -1148,9 +1148,13 @@ void ResourceDispatcherHostImpl::BeginRequest( |
| net::HttpRequestHeaders headers; |
| headers.AddHeadersFromString(request_data.headers); |
| + // PlzNavigate: no need to check ShouldServiceRequest at this point. The |
| + // browser process already picked the right renderer for the final URL, and |
| + // the stream URL is unguessable. |
| if (is_shutdown_ || |
| - !ShouldServiceRequest(child_id, request_data, headers, requester_info, |
| - resource_context)) { |
| + (!is_navigation_stream_request && |
|
Charlie Reis
2017/05/25 21:28:53
Why are we turning off a security check rather tha
jam
2017/05/25 21:45:17
To be clear: this isn't skipped for "blob urls". T
jam
2017/05/25 21:47:57
also: once we use mojo for loading, and consequent
jam
2017/05/25 22:00:41
Sorry forgot to reply to this: I think in this exa
Charlie Reis
2017/05/25 23:11:01
Interesting. Then I'm confused about why the requ
|
| + !ShouldServiceRequest(child_id, request_data, headers, requester_info, |
| + resource_context))) { |
| AbortRequestBeforeItStarts(requester_info->filter(), sync_result_handler, |
| request_id, std::move(url_loader_client)); |
| return; |