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( |