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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2323153003: PlzNavigate: make ctrl+click works. (Closed)
Patch Set: Created 4 years, 3 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 | testing/buildbot/filters/browser-side-navigation.linux.browser_tests.filter » ('j') | 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 cefdf2ba5537e1728dde9898f84d1cdb75309bea..21bb0387a47b4636b2a3ee21361203be104a41c8 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -5086,7 +5086,8 @@ WebNavigationPolicy RenderFrameImpl::decidePolicyForNavigation(
// This includes navigations with no request being sent to the network stack.
if (IsBrowserSideNavigationEnabled() &&
info.urlRequest.checkForBrowserSideNavigation() &&
- ShouldMakeNetworkRequestForURL(url)) {
+ ShouldMakeNetworkRequestForURL(url) &&
+ info.defaultPolicy == blink::WebNavigationPolicyCurrentTab) {
clamy 2016/09/09 15:28:01 I think we should still have a special case for Pl
BeginNavigation(info);
return blink::WebNavigationPolicyHandledByClient;
}
« no previous file with comments | « no previous file | testing/buildbot/filters/browser-side-navigation.linux.browser_tests.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698