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

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

Issue 2964033002: Disable cross-process navigations in --single-process. (Closed)
Patch Set: Fix condition. Created 3 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
« no previous file with comments | « no previous file | content/browser/site_instance_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8da3cb7c28df139f4e1521911bdda3154a4c652b..842b428007231831d38feb83464a71fe548f2b2d 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -1076,26 +1076,11 @@ void RenderFrameHostManager::DeleteRenderFrameProxyHost(
}
bool RenderFrameHostManager::ShouldTransitionCrossSite() {
alexmos 2017/06/30 20:40:38 Just noticed that the comment for this in the head
- // The logic below is weaker than "are all sites isolated" -- it asks instead,
- // "is any site isolated". That's appropriate here since we're just trying to
- // figure out if we're in any kind of site isolated mode, and in which case,
- // we ignore the kSingleProcess and kProcessPerTab settings.
- //
- // TODO(nick): Move all handling of kSingleProcess/kProcessPerTab into
- // SiteIsolationPolicy so we have a consistent behavior around the interaction
- // of the process model flags.
- //
- // TODO(creis, alexmos): This looks like it will break single-process and
- // process-per-tab. See https://crbug.com/688617.
- if (SiteIsolationPolicy::AreCrossProcessFramesPossible())
- return true;
-
- // False in the single-process mode, as it makes RVHs to accumulate
- // in swapped_out_hosts_.
- // True if we are using process-per-site-instance (default) or
- // process-per-site (kProcessPerSite).
- // TODO(nick): Move handling of kSingleProcess and kProcessPerTab into
- // SiteIsolationPolicy.
+ // False in single-process mode, which does not support cross-process
+ // navigations or OOPIFs. Also false in --process-per-tab, which uses one
+ // process per BrowsingInstance. ("Tab" is an over-simplifcation, since it's
+ // really a group of tabs, and it is still possible to swap BrowsingInstances
+ // within a tab.)
alexmos 2017/06/30 02:23:29 Yes, I agree that it makes sense to prioritize --s
alexmos 2017/06/30 20:40:38 Note that Lukasz is removing --process-per-tab fro
Charlie Reis 2017/06/30 23:45:15 These are excellent questions. :) I'm getting th
Charlie Reis 2017/07/10 16:18:38 In more detail... On 2017/06/30 23:45:15, Charlie
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSingleProcess) &&
!base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « no previous file | content/browser/site_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698