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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1129893005: Remove use of page id for forking callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for real Created 5 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/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index b44691dc57a9f4df6a18592fbf89559507476de8..1c4aa7548e0d4d3e4918faf161dce2b4b31a7e6d 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -4286,7 +4286,7 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
// handled by the browser so that ordinary renderer processes don't get
// blessed with file permissions.
int cumulative_bindings = RenderProcess::current()->GetEnabledBindings();
- bool is_initial_navigation = render_view_->page_id_ == -1;
+ bool is_initial_navigation = render_view_->history_list_length_ == 0;
bool should_fork = HasWebUIScheme(url) || HasWebUIScheme(old_url) ||
(cumulative_bindings & BINDINGS_POLICY_WEB_UI) ||
url.SchemeIs(kViewSourceScheme) ||
« 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