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

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

Issue 1799163002: Remove swapped out state from RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing failing layout test and adding an explicit test. Created 4 years, 9 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/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 79265e443d7fefbb85301a8ce7ca4ad25c37eb0d..22d7219f85eb9bf732df99907bffe632696a4a3c 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -615,16 +615,9 @@ void NavigatorImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host,
DCHECK(!render_frame_host->GetParent() ||
SiteIsolationPolicy::AreCrossProcessFramesPossible());
- // If this came from a swapped out RenderFrameHost, we only allow the request
- // if we are still in the same BrowsingInstance.
SiteInstance* current_site_instance = render_frame_host->frame_tree_node()
->current_frame_host()
->GetSiteInstance();
- if (render_frame_host->is_swapped_out() &&
- !render_frame_host->GetSiteInstance()->IsRelatedSiteInstance(
- current_site_instance)) {
- return;
- }
// TODO(creis): Pass the redirect_chain into this method to support client
// redirects. http://crbug.com/311721.

Powered by Google App Engine
This is Rietveld 408576698