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

Issue 2831683002: Introduce support for origins that require process isolation. (Closed)

Created:
3 years, 8 months ago by alexmos
Modified:
3 years, 7 months ago
Reviewers:
Charlie Reis, Devlin
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, ajwong+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce support for origins that require process isolation. This CL changes logic in SiteInstance to support isolating specific origins based on the full scheme+host+port tuple rather than just scheme and eTLD+1. The global list of such origins is maintained by SiteInstanceImpl and currently not exposed outside of content. This CL also adds a command-line option to add isolated origins. Sample usage: --isolate-origins=https://isolated.foo.com,https://bar.com Design doc: https://goo.gl/99ynqK BUG=713444 Review-Url: https://codereview.chromium.org/2831683002 Cr-Commit-Position: refs/heads/master@{#475191} Committed: https://chromium.googlesource.com/chromium/src/+/3b9ad10d35e7cb293f559d262bf417d7aa099f4d

Patch Set 1 #

Patch Set 2 : Fix unittest #

Patch Set 3 : Add command-line flag, which should fix Android #

Patch Set 4 : nit #

Patch Set 5 : Update comments #

Total comments: 2

Patch Set 6 : Rebase #

Total comments: 28

Patch Set 7 : Address Charlie's comments #

Patch Set 8 : Rebase #

Total comments: 23

Patch Set 9 : Charlie's comments, round 2 #

Patch Set 10 : Rebase #

Patch Set 11 : Fix compile #

Total comments: 4

Patch Set 12 : Charlie's comments (round 3) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+584 lines, -11 lines) Patch
M chrome/browser/ui/extensions/hosted_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +76 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.h View 1 2 3 4 5 6 7 8 3 chunks +36 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +42 lines, -8 lines 0 comments Download
M content/browser/child_process_security_policy_unittest.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A content/browser/isolated_origin_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +274 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/site_instance_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/site_instance_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +33 lines, -1 line 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
M content/common/site_isolation_policy.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/site_isolation_policy.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 75 (59 generated)
alexmos
Charlie, can you please take a look? I also organized some of my notes on ...
3 years, 7 months ago (2017-05-03 23:31:08 UTC) #30
Charlie Reis
I am very excited about this CL! There's still some interesting questions, but I'm glad ...
3 years, 7 months ago (2017-05-05 23:18:50 UTC) #33
alexmos
Thanks for reviewing, Charlie! I think both this and the design doc are ready for ...
3 years, 7 months ago (2017-05-16 17:26:38 UTC) #36
Charlie Reis
Thanks! This is looking pretty good. That's a hard question about the extra lock, though-- ...
3 years, 7 months ago (2017-05-19 00:10:19 UTC) #39
Charlie Reis
One possible solution for the lock issue below. https://codereview.chromium.org/2831683002/diff/140001/content/browser/child_process_security_policy_impl.h File content/browser/child_process_security_policy_impl.h (right): https://codereview.chromium.org/2831683002/diff/140001/content/browser/child_process_security_policy_impl.h#newcode296 content/browser/child_process_security_policy_impl.h:296: // ...
3 years, 7 months ago (2017-05-19 16:54:07 UTC) #40
alexmos
Thanks for reviewing, Charlie! Can you please take another look? The current trybot failures are ...
3 years, 7 months ago (2017-05-24 00:19:56 UTC) #53
alexmos
Sorry, a couple more replies that didn't get sent. https://codereview.chromium.org/2831683002/diff/140001/content/browser/site_instance_impl.cc File content/browser/site_instance_impl.cc (right): https://codereview.chromium.org/2831683002/diff/140001/content/browser/site_instance_impl.cc#newcode313 content/browser/site_instance_impl.cc:313: ...
3 years, 7 months ago (2017-05-24 00:28:33 UTC) #54
Charlie Reis
Thanks! LGTM with one question about scheme checks below. https://codereview.chromium.org/2831683002/diff/140001/content/browser/site_instance_impl.cc File content/browser/site_instance_impl.cc (right): https://codereview.chromium.org/2831683002/diff/140001/content/browser/site_instance_impl.cc#newcode392 content/browser/site_instance_impl.cc:392: ...
3 years, 7 months ago (2017-05-25 01:54:37 UTC) #55
alexmos
Thanks, Charlie! https://codereview.chromium.org/2831683002/diff/140001/content/browser/site_instance_impl.cc File content/browser/site_instance_impl.cc (right): https://codereview.chromium.org/2831683002/diff/140001/content/browser/site_instance_impl.cc#newcode392 content/browser/site_instance_impl.cc:392: // TODO(alexmos): revisit this for Isolate-Me. On ...
3 years, 7 months ago (2017-05-25 16:58:49 UTC) #57
alexmos
Devlin, can you please review the test in chrome/browser/ui/extensions/hosted_app_browsertest.cc for OWNERS?
3 years, 7 months ago (2017-05-25 17:00:35 UTC) #60
Devlin
lgtm for this as a test behind a flag (its current state). Do we have ...
3 years, 7 months ago (2017-05-26 02:00:24 UTC) #64
alexmos
On 2017/05/26 02:00:24, Devlin (catching up) wrote: > lgtm for this as a test behind ...
3 years, 7 months ago (2017-05-26 17:38:10 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2831683002/220001
3 years, 7 months ago (2017-05-26 22:10:36 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/464379)
3 years, 7 months ago (2017-05-26 23:07:35 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2831683002/220001
3 years, 7 months ago (2017-05-26 23:09:36 UTC) #72
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 23:41:34 UTC) #75
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/3b9ad10d35e7cb293f559d262bf4...

Powered by Google App Engine
This is Rietveld 408576698