| 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 b2be362dfb61d9b6904098078d4c62f5f2c1cbc6..ed903fc5c7d0c1964499ce216cb9eda463182c51 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -390,6 +390,8 @@ void NavigatorImpl::DidNavigate(
|
| FrameTree* frame_tree = render_frame_host->frame_tree_node()->frame_tree();
|
| bool oopifs_possible = SiteIsolationPolicy::AreCrossProcessFramesPossible();
|
|
|
| + bool is_navigation_within_page = controller_->IsURLInPageNavigation(
|
| + params.url, params.was_within_same_page, render_frame_host);
|
| if (ui::PageTransitionIsMainFrame(params.transition)) {
|
| if (delegate_) {
|
| // When overscroll navigation gesture is enabled, a screenshot of the page
|
| @@ -408,8 +410,6 @@ void NavigatorImpl::DidNavigate(
|
| }
|
|
|
| // Run tasks that must execute just before the commit.
|
| - bool is_navigation_within_page = controller_->IsURLInPageNavigation(
|
| - params.url, params.was_within_same_page, render_frame_host);
|
| delegate_->DidNavigateMainFramePreCommit(is_navigation_within_page);
|
| }
|
|
|
| @@ -485,7 +485,8 @@ void NavigatorImpl::DidNavigate(
|
| delegate_->DidCommitProvisionalLoad(render_frame_host,
|
| params.url,
|
| transition_type);
|
| - render_frame_host->navigation_handle()->DidCommitNavigation();
|
| + render_frame_host->navigation_handle()->DidCommitNavigation(
|
| + is_navigation_within_page);
|
| }
|
|
|
| if (!did_navigate)
|
|
|