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

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

Issue 2475693002: Do not reset NavigationHandle when navigating same-page (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/interstitial_page_navigator_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_navigator_impl.cc b/content/browser/frame_host/interstitial_page_navigator_impl.cc
index a19deefa127366eb78f867e56bc8c4c4d7fd73b0..548b4d1a6892d8aa9b06dedc16b0dad55bfecac0 100644
--- a/content/browser/frame_host/interstitial_page_navigator_impl.cc
+++ b/content/browser/frame_host/interstitial_page_navigator_impl.cc
@@ -45,8 +45,9 @@ void InterstitialPageNavigatorImpl::DidStartProvisionalLoad(
void InterstitialPageNavigatorImpl::DidNavigate(
RenderFrameHostImpl* render_frame_host,
- const FrameHostMsg_DidCommitProvisionalLoad_Params& input_params) {
- if (navigation_handle_) {
+ const FrameHostMsg_DidCommitProvisionalLoad_Params& input_params,
+ std::unique_ptr<NavigationHandleImpl> navigation_handle) {
+ if (!navigation_handle->IsSamePage() && navigation_handle_) {
Charlie Reis 2016/11/04 17:30:53 Hmm, I think we should look more closely at this.
clamy 2016/11/07 14:10:51 Actually, it is impossible for navigation_handle_
Charlie Reis 2016/11/08 06:38:53 Much better-- thanks!
navigation_handle_->DidCommitNavigation(input_params, false,
render_frame_host);
navigation_handle_.reset();

Powered by Google App Engine
This is Rietveld 408576698