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

Issue 2668013005: Turn on AreCrossProcessFramesPossible by default. (Closed)

Created:
3 years, 10 months ago by Charlie Reis
Modified:
3 years, 10 months ago
Reviewers:
wjmaclean, alexmos
CC:
chromium-reviews, jam, darin-cc_chromium.org, site-isolation-reviews_chromium.org, lfg, wjmaclean, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This turns on all of the plumbing required to create out-of-process iframes, without enabling any policies that create them in practice. This minimizes the difference between OOPIF and non-OOPIF modes. Behavior changes include: - Creating proxies for child frames and replicating state to them - Enabling cross-process policy checks for child frame navigations - More complex fullscreen toggling logic - Slightly different event routing and focus logic This CL also corrects a few test expectations, which were using the wrong policy function to detect --site-per-process behavior. BUG=545200 TEST=No visible behavior change. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation [Closed in favor of https://crrev.com/448380 and https://crrev.com/448761]

Patch Set 1 #

Patch Set 2 : Fix unit tests, find potential problems. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -19 lines) Patch
M content/browser/frame_host/navigator_impl_unittest.cc View 1 10 chunks +10 lines, -10 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 1 chunk +2 lines, -0 lines 1 comment Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 1 chunk +1 line, -0 lines 2 comments Download
M content/browser/renderer_host/render_widget_host_view_event_handler.cc View 1 1 chunk +1 line, -0 lines 2 comments Download
M content/common/site_isolation_policy.cc View 1 chunk +1 line, -9 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
Charlie Reis
Alex, can you take a look at some of these TODOs and possibly take over ...
3 years, 10 months ago (2017-02-03 01:14:04 UTC) #11
Charlie Reis
(We might also consider landing the unrelated fixes before flipping on the policy function, in ...
3 years, 10 months ago (2017-02-03 03:34:36 UTC) #14
wjmaclean
https://codereview.chromium.org/2668013005/diff/20001/content/browser/renderer_host/render_widget_host_view_event_handler.cc File content/browser/renderer_host/render_widget_host_view_event_handler.cc (right): https://codereview.chromium.org/2668013005/diff/20001/content/browser/renderer_host/render_widget_host_view_event_handler.cc#newcode843 content/browser/renderer_host/render_widget_host_view_event_handler.cc:843: // TODO(creis): Is this right? Yes, I think this ...
3 years, 10 months ago (2017-02-03 17:01:53 UTC) #16
alexmos
On 2017/02/03 01:14:04, Charlie Reis (OOO til Feb 13) wrote: > Alex, can you take ...
3 years, 10 months ago (2017-02-04 02:03:01 UTC) #17
Charlie Reis
3 years, 10 months ago (2017-02-13 22:02:49 UTC) #18
Thanks for landing these while I was out!  I'll close this and will take a look
at https://crbug.com/688617.  (Also surprised to see the Android regression in
https://crbug.com/690229, which we should investigate.)

https://codereview.chromium.org/2668013005/diff/20001/content/browser/frame_h...
File content/browser/frame_host/render_widget_host_view_guest.cc (right):

https://codereview.chromium.org/2668013005/diff/20001/content/browser/frame_h...
content/browser/frame_host/render_widget_host_view_guest.cc:358: // TODO(creis):
This is wrong.  Should check for OOPIF webview mode instead.
On 2017/02/04 02:03:01, alexmos wrote:
> I actually think this is ok.  The description in the CL that introduced this,
> https://codereview.chromium.org/1845083002, seems to imply that this should
> trigger based on whether the input event router is installed, which James
> confirmed should be triggered by AreCrossProcessFramesPossible().  I chatted
> with Lucas, and he also agreed that this call is ok as is.

Acknowledged.

https://codereview.chromium.org/2668013005/diff/20001/content/browser/rendere...
File content/browser/renderer_host/render_widget_host_view_event_handler.cc
(right):

https://codereview.chromium.org/2668013005/diff/20001/content/browser/rendere...
content/browser/renderer_host/render_widget_host_view_event_handler.cc:843: //
TODO(creis): Is this right?
On 2017/02/03 17:01:53, wjmaclean wrote:
> Yes, I think this is correct. (Although these days I think the mouse-wheels
get
> converted to GestureScrolls, and not the other way around).
> 
> We should start to look at the cases where there is no delegate, or the
delegate
> has no input event router, and see if they still exist.
> 
> There's already a bug filed to make |disable_input_event_router_for_testing_|
> unnecessary.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698