Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2908593002: Fix Docs links from Files app on ChromeOS not working with PlzNavigate. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698