Commit 46790669 authored by avi's avatar avi Committed by Commit bot

Don’t reset the page id when the browser takes the navigation.

When the browser takes the navigation, the current page doesn’t change, so it makes no sense to change the page id.

This reverts a58db8b0.

BUG=407376
TEST=stuff is green

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

Cr-Commit-Position: refs/heads/master@{#292433}
parent fba63314
......@@ -3509,10 +3509,6 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
}
if (browser_handles_request) {
// Reset these counters as the RenderView could be reused for the next
// navigation.
render_view_->page_id_ = -1;
render_view_->last_page_id_sent_to_browser_ = -1;
OpenURL(info.frame, url, referrer, info.defaultPolicy);
return blink::WebNavigationPolicyIgnore; // Suppress the load here.
}
......
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