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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 2381503003: PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga… (Closed)
Patch Set: remove logging 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 unified diff | Download patch
« no previous file with comments | « no previous file | testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /* 5 /*
6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 1782
1783 // If an interstitial page is showing, the previous renderer is blocked and 1783 // If an interstitial page is showing, the previous renderer is blocked and
1784 // cannot make new requests. Unblock (and disable) it to allow this 1784 // cannot make new requests. Unblock (and disable) it to allow this
1785 // navigation to succeed. The interstitial will stay visible until the 1785 // navigation to succeed. The interstitial will stay visible until the
1786 // resulting DidNavigate. 1786 // resulting DidNavigate.
1787 if (delegate_->GetInterstitialPage()) { 1787 if (delegate_->GetInterstitialPage()) {
1788 static_cast<InterstitialPageImpl*>(delegate_->GetInterstitialPage())-> 1788 static_cast<InterstitialPageImpl*>(delegate_->GetInterstitialPage())->
1789 CancelForNavigation(); 1789 CancelForNavigation();
1790 } 1790 }
1791 1791
1792 // Note that we don't want to convert to a reload for history navigations, so
Charlie Reis 2016/11/01 21:18:40 nit: It's not obvious what this block is doing at
scottmg 2016/11/01 22:14:30 Done.
1793 // this must be above the retrieval of the pending_entry_ below when
1794 // pending_entry_index_ is used.
1795 if (reload_type == ReloadType::NONE && GetLastCommittedEntry() &&
1796 pending_entry_ && pending_entry_->frame_tree_node_id() == -1 &&
1797 pending_entry_->GetURL() == GetLastCommittedEntry()->GetURL() &&
1798 !pending_entry_->GetHasPostData() &&
1799 // This check is required for Android WebView loadDataWithBaseURL.
1800 GetLastCommittedEntry()->GetVirtualURL() ==
1801 pending_entry_->GetVirtualURL()) {
Charlie Reis 2016/11/01 21:18:40 Just as a sanity check, I patched this in and trie
scottmg 2016/11/01 22:14:30 Thanks for checking!
1802 reload_type = ReloadType::MAIN_RESOURCE;
1803 }
1804
1792 // For session history navigations only the pending_entry_index_ is set. 1805 // For session history navigations only the pending_entry_index_ is set.
1793 if (!pending_entry_) { 1806 if (!pending_entry_) {
1794 CHECK_NE(pending_entry_index_, -1); 1807 CHECK_NE(pending_entry_index_, -1);
1795 pending_entry_ = entries_[pending_entry_index_].get(); 1808 pending_entry_ = entries_[pending_entry_index_].get();
1796 } 1809 }
1797 1810
1798 // Any renderer-side debug URLs or javascript: URLs should be ignored if the 1811 // Any renderer-side debug URLs or javascript: URLs should be ignored if the
1799 // renderer process is not live, unless it is the initial navigation of the 1812 // renderer process is not live, unless it is the initial navigation of the
1800 // tab. 1813 // tab.
1801 if (IsRendererDebugURL(pending_entry_->GetURL())) { 1814 if (IsRendererDebugURL(pending_entry_->GetURL())) {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 } 2097 }
2085 } 2098 }
2086 } 2099 }
2087 2100
2088 void NavigationControllerImpl::SetGetTimestampCallbackForTest( 2101 void NavigationControllerImpl::SetGetTimestampCallbackForTest(
2089 const base::Callback<base::Time()>& get_timestamp_callback) { 2102 const base::Callback<base::Time()>& get_timestamp_callback) {
2090 get_timestamp_callback_ = get_timestamp_callback; 2103 get_timestamp_callback_ = get_timestamp_callback;
2091 } 2104 }
2092 2105
2093 } // namespace content 2106 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698