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

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

Issue 2399853003: [M54 merge] Lock down creation of blob:chrome-extension URLs from non-extension processes. (Closed)
Patch Set: Rebase Created 4 years, 2 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 d5aef422d7a24bd73e88d3a70555b9dac2ace793..c4c2794bde71523a293d8bfe781eeed16943b3ff 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -1465,8 +1465,6 @@ bool RenderFrameHostManager::IsRendererTransferNeededForNavigation(
}
BrowserContext* context = rfh->GetSiteInstance()->GetBrowserContext();
- GURL effective_url = SiteInstanceImpl::GetEffectiveURL(context, dest_url);
-
// TODO(nasko, nick): These following --site-per-process checks are
// overly simplistic. Update them to match all the cases
// considered by DetermineSiteInstanceForURL.
@@ -1480,7 +1478,7 @@ bool RenderFrameHostManager::IsRendererTransferNeededForNavigation(
// then a transfer is needed.
if (rfh->GetSiteInstance()->RequiresDedicatedProcess() ||
SiteInstanceImpl::DoesSiteRequireDedicatedProcess(context,
- effective_url)) {
+ dest_url)) {
return true;
}
« no previous file with comments | « content/browser/frame_host/frame_tree_browsertest.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698