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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1222203004: PlzNavigate: Do not send synchronous navigations from the renderer to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change test Created 5 years, 6 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
« content/common/navigation_params.cc ('K') | « content/common/navigation_params.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 2e7d77a987884907027c9592b092779f2be946ff..d64c7ead244f818f749959d47a20d9d43c5389ab 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -4332,7 +4332,8 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
// PlzNavigate: send the request to the browser if needed.
clamy 2015/07/03 11:41:44 Could you rephrase the comment to something like "
Fabrice (no longer in Chrome) 2015/07/03 14:55:36 Done.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserSideNavigation) &&
- info.urlRequest.checkForBrowserSideNavigation()) {
+ info.urlRequest.checkForBrowserSideNavigation() &&
+ CommonNavigationParams::ShouldMakeNetworkRequest(url)) {
BeginNavigation(&info.urlRequest);
return blink::WebNavigationPolicyIgnore;
}
« content/common/navigation_params.cc ('K') | « content/common/navigation_params.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698