Commit 6e804184 authored by avi's avatar avi Committed by Commit bot

Remove use of page id for forking callback.

BUG=369661
TEST=All tests remain green.

Review URL: https://codereview.chromium.org/1129893005

Cr-Commit-Position: refs/heads/master@{#329236}
parent 8dba5a56
...@@ -4286,7 +4286,7 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation( ...@@ -4286,7 +4286,7 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
// handled by the browser so that ordinary renderer processes don't get // handled by the browser so that ordinary renderer processes don't get
// blessed with file permissions. // blessed with file permissions.
int cumulative_bindings = RenderProcess::current()->GetEnabledBindings(); 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) || bool should_fork = HasWebUIScheme(url) || HasWebUIScheme(old_url) ||
(cumulative_bindings & BINDINGS_POLICY_WEB_UI) || (cumulative_bindings & BINDINGS_POLICY_WEB_UI) ||
url.SchemeIs(kViewSourceScheme) || url.SchemeIs(kViewSourceScheme) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment