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

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

Issue 2322673005: Fix process transfers for blob urls of sites requiring dedicated processes. (Closed)
Patch Set: Created 4 years, 3 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/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 571bf33c2943f76939b8a24702f24bcb557ebb28..49a72baaa216a9feccf7054038ac2175cf73b7b5 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -1446,7 +1446,7 @@ bool RenderFrameHostManager::IsRendererTransferNeededForNavigation(
}
BrowserContext* context = rfh->GetSiteInstance()->GetBrowserContext();
- GURL effective_url = SiteInstanceImpl::GetEffectiveURL(context, dest_url);
+ GURL site_url = SiteInstanceImpl::GetSiteForURL(context, dest_url);
// TODO(nasko, nick): These following --site-per-process checks are
// overly simplistic. Update them to match all the cases
@@ -1460,8 +1460,7 @@ bool RenderFrameHostManager::IsRendererTransferNeededForNavigation(
// The sites differ. If either one requires a dedicated process,
// then a transfer is needed.
if (rfh->GetSiteInstance()->RequiresDedicatedProcess() ||
- SiteInstanceImpl::DoesSiteRequireDedicatedProcess(context,
- effective_url)) {
+ SiteInstanceImpl::DoesSiteRequireDedicatedProcess(context, site_url)) {
Charlie Reis 2016/09/09 18:54:39 Can you explain why was passing the effective URL
return true;
}
« no previous file with comments | « content/browser/frame_host/frame_tree_browsertest.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698