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

Unified Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 2136873002: Clear child FrameNavigationEntries if a history navigation redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable test on PlzNavigate. Created 4 years, 5 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/navigation_entry_impl.h
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h
index c8dd72237c14e525fd19a0eb2bfe4e8fe37a204b..442b134b157ca6ba4cf1f740868d46c9eb108976 100644
--- a/content/browser/frame_host/navigation_entry_impl.h
+++ b/content/browser/frame_host/navigation_entry_impl.h
@@ -217,6 +217,11 @@ class CONTENT_EXPORT NavigationEntryImpl
// there is one in this NavigationEntry.
FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const;
+ // Removes subframe FrameNavigationEntries below the item corresponding to
+ // |frame_tree_node| (if any). This is necessary after server redirects
+ // during session history navigations, when the child items no longer apply.
+ void ClearChildren(FrameTreeNode* frame_tree_node);
+
void set_unique_id(int unique_id) {
unique_id_ = unique_id;
}

Powered by Google App Engine
This is Rietveld 408576698