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

Issue 126002: Group renderer processes by privilige when we hit the max process count.... (Closed)

Created:
11 years, 6 months ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Charlie Reis, brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Group renderer processes by privilige when we hit the max process count. BUG=12128 TEST=Create a bunch of tabs (40+) and make sure New Tab pages are always grouped in a process with other chrome internal pages, extensions are always grouped together, and regular web pages are never in a process with extensions or New Tab pages. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18428

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -28 lines) Patch
M chrome/browser/renderer_host/mock_render_process_host.cc View 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host.h View 1 2 3 2 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host.cc View 1 2 3 7 chunks +32 lines, -9 lines 0 comments Download
M chrome/browser/tab_contents/site_instance.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/site_instance.cc View 1 2 3 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/site_instance_unittest.cc View 2 3 7 chunks +71 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Matt Perry
11 years, 6 months ago (2009-06-11 20:34:22 UTC) #1
brettw
This is great. Do you think it's possible to write a unittest?
11 years, 6 months ago (2009-06-11 20:57:15 UTC) #2
Matt Perry
On 2009/06/11 20:57:15, brettw wrote: > This is great. Do you think it's possible to ...
11 years, 6 months ago (2009-06-11 22:44:59 UTC) #3
brettw
Thanks. My question for Charlie: Is it possible for a site to open a page ...
11 years, 6 months ago (2009-06-11 22:52:51 UTC) #4
Charlie Reis
On 2009/06/11 22:52:51, brettw wrote: > Thanks. > > My question for Charlie: Is it ...
11 years, 6 months ago (2009-06-12 17:30:27 UTC) #5
Matt Perry
11 years, 6 months ago (2009-06-12 18:45:01 UTC) #6
On 2009/06/12 17:30:27, creis wrote:
> On 2009/06/11 22:52:51, brettw wrote:
> > Thanks.
> > 
> > My question for Charlie: Is it possible for a site to open a page with a
> chrome:
> > scheme and get a site instance with that in such a way that it tricks this
> code?
> 
> Sorry for the delay-- I've got family in town for graduation, so I'm a bit out
> of touch at the moment.
> 
> I'm very excited about this changelist, though.  At a quick glance, I think it
> looks good.  The thing to check is whether a new SiteInstance is properly
> created if you click on a link to a normal page in either a DOM UI page or an
> extension page.  (If you click on a cross-site link in a normal page, we do
not
> yet create a new SiteInstance for it.  If that's true for extensions, for
> example, it may leak these privileges to a normal page.)

We don't create a new SiteInstance, or even a new RenderViewHost, when you click
a cross-site link in an extension.  That's a separate bug though.  This CL is
only concerned with what happens when we try to reuse existing processes after
we hit our limit.

Thanks for bringing the link clicking issue to my attention though.  NTP handles
that case fine.  We probably just need to do the same for extensions.

Powered by Google App Engine
This is Rietveld 408576698