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

Issue 1377933004: Modify --isolate-extensions to not isolate hosted apps. (Closed)

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

Description

Modify --isolate-extensions to not isolate hosted apps. This requires shifting some of the burden of isolation logic from SiteIsolationPolicy (which is content/common) to SiteInstanceImpl (which can call into content/browser specific code). Make the SiteDetails UMA stats match this behavior. Doing things this way requires content to call back into the embedder during each navigation policy check, which means we're retreating from the "register isolated schemes" data flow. This new approach will be flexible enough to support "--isolate-hosted-apps" if we want to implement that in the future. BUG=535073 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation TEST=browser_tests Committed: https://crrev.com/cc0d9147754159827fe40b966cc6db542fc2a571 Cr-Commit-Position: refs/heads/master@{#354038}

Patch Set 1 #

Patch Set 2 : New approach #

Patch Set 3 : Fixes from self-review. #

Patch Set 4 : #

Patch Set 5 : Fix Android build via ENABLE_EXTENSIONS ifdef #

Patch Set 6 : One more comment fix. #

Total comments: 9

Patch Set 7 : Fixes from charlie #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -111 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/site_details.cc View 1 2 3 4 4 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/site_details_browsertest.cc View 1 2 3 4 5 6 5 chunks +49 lines, -10 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/site_instance_impl.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/site_instance_impl.cc View 1 2 6 chunks +26 lines, -7 lines 0 comments Download
M content/common/site_isolation_policy.h View 1 2 chunks +2 lines, -16 lines 0 comments Download
M content/common/site_isolation_policy.cc View 1 2 chunks +6 lines, -55 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 1 chunk +15 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/content_client.h View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M content/public/common/content_client.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/test_utils.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (5 generated)
ncarter (slow)
Charlie, this is ready for you now
5 years, 2 months ago (2015-10-12 22:24:29 UTC) #2
Charlie Reis
Nice. (Aren't hosted apps fun?) Sorry you had to undo the scheme whitelist, but I ...
5 years, 2 months ago (2015-10-12 23:13:28 UTC) #3
ncarter (slow)
https://codereview.chromium.org/1377933004/diff/100001/chrome/browser/site_details.cc File chrome/browser/site_details.cc (right): https://codereview.chromium.org/1377933004/diff/100001/chrome/browser/site_details.cc#newcode46 chrome/browser/site_details.cc:46: return extension && !extension->is_hosted_app(); On 2015/10/12 23:13:28, Charlie Reis ...
5 years, 2 months ago (2015-10-13 20:22:11 UTC) #5
ncarter (slow)
+jam, for chrome/ OWNERS
5 years, 2 months ago (2015-10-13 20:23:24 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/1377933004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377933004/120001
5 years, 2 months ago (2015-10-13 20:25:13 UTC) #8
Charlie Reis
Great. Still LGTM. https://codereview.chromium.org/1377933004/diff/100001/chrome/browser/site_details_browsertest.cc File chrome/browser/site_details_browsertest.cc (right): https://codereview.chromium.org/1377933004/diff/100001/chrome/browser/site_details_browsertest.cc#newcode740 chrome/browser/site_details_browsertest.cc:740: // Reload the same two pages. ...
5 years, 2 months ago (2015-10-13 21:20:04 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-13 21:59:47 UTC) #11
jam
lgtm
5 years, 2 months ago (2015-10-14 15:22:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377933004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377933004/120001
5 years, 2 months ago (2015-10-14 16:22:33 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-14 16:27:21 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 16:28:17 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cc0d9147754159827fe40b966cc6db542fc2a571
Cr-Commit-Position: refs/heads/master@{#354038}

Powered by Google App Engine
This is Rietveld 408576698