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

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

Issue 2264633003: Workaround for reading bad PageState from session history. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « components/sessions/content/content_serialized_navigation_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 370bd2f436bcc2618698e033425cc6cbc59a6695..5ff154497bfe76d44647a4de419b321486a42385 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -972,6 +972,13 @@ void RenderFrameHostImpl::OnOpenURL(const FrameHostMsg_OpenURL_Params& params) {
if (frame_tree_node_->navigator()->NavigateNewChildFrame(
this, params.frame_unique_name))
return;
+
+ // No need to explicitly load about:blank, since we start there anyway.
+ if (params.url == GURL(url::kAboutBlankURL)) {
+ // TODO(creis): Do we need to stop loading in the frame?
+ DLOG(INFO) << "Skipping OpenURL for fallback to about:blank";
+ return;
+ }
}
OpenURL(params, GetSiteInstance());
« no previous file with comments | « components/sessions/content/content_serialized_navigation_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698