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

Issue 1495993002: Enforce all subframes to be in the same BrowsingInstance as the parent. (Closed)

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

Description

Enforce all subframes to be in the same BrowsingInstance as the parent. Parent and child frames must be part of the same "unit of related browsing contexts" per the HTML spec. This rule is currently broken when subframes are allowed to perform cross-process navigations. This CL is implementing a simple fix for this and adding an enforcement of this rule to WebContentsObserverSanityChecker. A more comprehensive implementation can be done at a later time. BUG=522302 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/e8e623d5bf2b4ab72b66fbb6b6e649c66adbd46f Cr-Commit-Position: refs/heads/master@{#363292}

Patch Set 1 : #

Patch Set 2 : Enable ExtensionApiTest.ContentScriptOtherExtensions #

Patch Set 3 : Rebase on ToT. #

Patch Set 4 : Fix UMA test. #

Total comments: 4

Patch Set 5 : Fixes based on Charlie's review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -10 lines) Patch
M chrome/browser/site_details_browsertest.cc View 1 2 3 5 chunks +7 lines, -8 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
nasko
Hey Charlie, Can you review this CL for me? It is the simpler fix for ...
5 years ago (2015-12-04 16:55:27 UTC) #3
Charlie Reis
Great. LGTM with nits. https://codereview.chromium.org/1495993002/diff/70001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1495993002/diff/70001/content/browser/frame_host/render_frame_host_manager.cc#newcode1272 content/browser/frame_host/render_frame_host_manager.cc:1272: // Subframe must stay in ...
5 years ago (2015-12-04 18:23:23 UTC) #5
nasko
sky@, can you do an OWNERS stamp on this? It is a trivial update of ...
5 years ago (2015-12-04 18:32:33 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495993002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495993002/90001
5 years ago (2015-12-04 18:36:07 UTC) #9
nasko
Adding Devlin to for visibility and to ensure this is the desired behavior.
5 years ago (2015-12-04 20:01:56 UTC) #11
Devlin
LGTM
5 years ago (2015-12-04 20:04:41 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-04 20:07:34 UTC) #14
sky
LGTM
5 years ago (2015-12-04 20:33:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495993002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495993002/90001
5 years ago (2015-12-04 20:54:55 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:90001)
5 years ago (2015-12-04 21:00:37 UTC) #20
commit-bot: I haz the power
5 years ago (2015-12-04 21:01:33 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e8e623d5bf2b4ab72b66fbb6b6e649c66adbd46f
Cr-Commit-Position: refs/heads/master@{#363292}

Powered by Google App Engine
This is Rietveld 408576698