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

Issue 1506093002: Don't create unexpected OOPIFs in --isolate-extensions. (Closed)

Created:
5 years ago by Charlie Reis
Modified:
5 years ago
Reviewers:
nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, ncarter (slow), site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't create unexpected OOPIFs in --isolate-extensions. Session restore was leading to OOPIFs for cross-site iframes in modes with more limited OOPIF-creation policies, because the SiteInstance groupings are not restored. Instead, use the same logic as the transfer case to determine whether a process swap is needed. BUG=567424 TEST=See bug for repro steps.

Patch Set 1 #

Patch Set 2 : Add test (won't fail yet) #

Total comments: 9

Patch Set 3 : Nasko's suggestions #

Total comments: 2

Patch Set 4 : Use new switch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -5 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 3 chunks +108 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 chunk +16 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Charlie Reis
Nasko, can you take a look? The fix seemed to do well in try jobs ...
5 years ago (2015-12-08 18:01:11 UTC) #3
nasko
LGTM with a few nits. https://codereview.chromium.org/1506093002/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1506093002/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2685 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2685: class NavigationControllerOOPIFBrowserTest nit: Per ...
5 years ago (2015-12-08 18:23:35 UTC) #4
Charlie Reis
Thanks! Nick's CL is here: https://codereview.chromium.org/1507333002/ I'll prepare this one to land separately from that ...
5 years ago (2015-12-08 19:04:57 UTC) #5
nasko
One last nit. https://codereview.chromium.org/1506093002/diff/60001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1506093002/diff/60001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2720 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2720: TestNavigationObserver capturer(shell()->web_contents()); nit: It is no ...
5 years ago (2015-12-08 19:08:42 UTC) #6
Charlie Reis
Thanks! I also added the switch so that the test is meaningful when Nick's https://codereview.chromium.org/1507333002/ ...
5 years ago (2015-12-08 19:30:51 UTC) #7
Charlie Reis
5 years ago (2015-12-08 22:12:06 UTC) #9
Message was sent while issue was closed.
Closing in favor of https://codereview.chromium.org/1505343002/.

Powered by Google App Engine
This is Rietveld 408576698