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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 317703004: Simplify AreURLsInPageNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Kill the renderer if it claims a cross-origin in-page navigation Created 6 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
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index ef1f3c1d3efcfcd2ed631aa72c053b6fa2955aaa..be8583b2918ee5cf62273fed3fa6468791169ba9 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -447,7 +447,9 @@ void NavigatorImpl::DidNavigate(
}
// Run tasks that must execute just before the commit.
- delegate_->DidNavigateMainFramePreCommit(params);
+ bool is_navigation_within_page = controller_->IsURLInPageNavigation(
+ params.url, params.was_within_same_page, render_frame_host);
+ delegate_->DidNavigateMainFramePreCommit(is_navigation_within_page);
}
if (!use_site_per_process)

Powered by Google App Engine
This is Rietveld 408576698