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

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

Created:
5 years ago by Charlie Reis
Modified:
5 years ago
Reviewers:
ncarter (slow), nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, Peter Beverloo, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, 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. (Passed all try jobs, but stuck on flaky linux_android_rel_ng job.) NOTRY=true BUG=567424 TEST=See bug for repro steps. Committed: https://crrev.com/31e1b2453015fc63ab7aa69cace36092eea55760 Cr-Commit-Position: refs/heads/master@{#363857}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Nick's suggestions #

Patch Set 3 : Revert to previous fix #

Patch Set 4 : Fix about:blank case #

Total comments: 3

Patch Set 5 : Rebase #

Patch Set 6 : Update comments #

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

Messages

Total messages: 28 (15 generated)
Charlie Reis
Nasko/Nick: Can you give this a sanity check? It's just the combination of my https://codereview.chromium.org/1506093002/ ...
5 years ago (2015-12-08 19:32:03 UTC) #2
ncarter (slow)
https://codereview.chromium.org/1505343002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1505343002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2723 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2723: TestNavigationObserver observer(shell()->web_contents()); This TNO (and its enclosing scope) might ...
5 years ago (2015-12-08 20:14:13 UTC) #3
Charlie Reis
Thanks! I'll run a CQ dry run. https://codereview.chromium.org/1505343002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1505343002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2723 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2723: TestNavigationObserver observer(shell()->web_contents()); ...
5 years ago (2015-12-08 20:34:12 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343002/20001
5 years ago (2015-12-08 20:38:27 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/90078)
5 years ago (2015-12-08 20:59:43 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343002/40001
5 years ago (2015-12-08 21:36:14 UTC) #10
Charlie Reis
Here's the new version that passes SitePerProcessBrowserTest.NavigateRemoteFrameToBlankAndDataURLs. I'll rebase to pick up https://codereview.chromium.org/1507333002/.
5 years ago (2015-12-08 22:06:33 UTC) #11
ncarter (slow)
lgtm! https://codereview.chromium.org/1505343002/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/1505343002/diff/60001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode2706 content/browser/frame_host/navigation_controller_impl_browsertest.cc:2706: DCHECK(SiteIsolationPolicy::AreCrossProcessFramesPossible()); EXPECT_TRUE https://codereview.chromium.org/1505343002/diff/60001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1505343002/diff/60001/content/browser/frame_host/render_frame_host_manager.cc#newcode2330 content/browser/frame_host/render_frame_host_manager.cc:2330: ...
5 years ago (2015-12-08 22:16:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343002/100001
5 years ago (2015-12-08 22:17:04 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/107287)
5 years ago (2015-12-09 00:14:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505343002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505343002/100001
5 years ago (2015-12-09 00:23:38 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-09 00:46:52 UTC) #26
commit-bot: I haz the power
5 years ago (2015-12-09 00:48:05 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/31e1b2453015fc63ab7aa69cace36092eea55760
Cr-Commit-Position: refs/heads/master@{#363857}

Powered by Google App Engine
This is Rietveld 408576698