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

Unified Diff: content/renderer/history_controller.cc

Issue 2023013002: Prevent renderer kills for in-page navigations on subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests and fix, clean up. Created 4 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/renderer/history_controller.cc
diff --git a/content/renderer/history_controller.cc b/content/renderer/history_controller.cc
index ddd187853be623ef5d15238c56eb3b139108b7ce..057e6d25e9004f0ea2c9a8637c7cda35ee5c4318 100644
--- a/content/renderer/history_controller.cc
+++ b/content/renderer/history_controller.cc
@@ -135,8 +135,7 @@ void HistoryController::RecursiveGoToEntry(
RenderFrameImpl* render_frame = RenderFrameImpl::FromWebFrame(frame);
const WebHistoryItem& new_item =
provisional_entry_->GetItemForFrame(render_frame);
- const WebHistoryItem& old_item =
- current_entry_->GetItemForFrame(render_frame);
+ const WebHistoryItem& old_item = render_frame->current_history_item();
Charlie Reis 2016/06/03 19:20:35 This fixes BackTwiceToIframeWithContent in default
Avi (use Gerrit) 2016/06/03 20:26:57 Agreed that this is a fix; is a comment appropriat
Charlie Reis 2016/06/03 20:53:28 Done.
if (new_item.isNull())
return;

Powered by Google App Engine
This is Rietveld 408576698