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

Issue 10458063: Add sanbdoxed_pages to allow extension/app pages to be served in a sandboxed, unique origin (Closed)

Created:
8 years, 6 months ago by Mihai Parparita -not on Chrome
Modified:
8 years, 6 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org, abarth-chromium
Visibility:
Public.

Description

Add sandboxed_pages to allow extension/app pages to be served in a sandboxed, unique origin. This allows manifest_version 2 extensions to have pages that are exempt from their Content Security Policy (but these pages can't call extension APIs either). Depends on http://webkit.org/b/88014 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140689

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Also try to use extension APIs. #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Total comments: 4

Patch Set 6 : Move test #

Patch Set 7 : sandboxed_pages #

Patch Set 8 : Don't inject bindings #

Total comments: 1

Patch Set 9 : CheckCurrentContextAccessToExtensionAPI #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -34 lines) Patch
M chrome/browser/extensions/extension_protocols.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
A chrome/browser/extensions/sandboxed_pages_apitest.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/csp_validator.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/csp_validator.cc View 1 2 3 4 5 6 7 2 chunks +47 lines, -0 lines 0 comments Download
M chrome/common/extensions/csp_validator_unittest.cc View 1 2 3 4 5 6 7 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/manifest.html View 1 2 3 4 5 6 7 8 chunks +60 lines, -10 lines 0 comments Download
M chrome/common/extensions/docs/static/manifest.html View 1 2 3 4 5 6 7 7 chunks +65 lines, -10 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 4 chunks +19 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 6 chunks +64 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_set.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_set.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -1 line 0 comments Download
A chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -2 lines 1 comment Download
M chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/iframe.js View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/sandboxed_pages/main.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/sandboxed_pages/main.js View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/sandboxed_pages/manifest.json View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_invalid_1.json View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_invalid_2.json View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_invalid_3.json View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_invalid_4.json View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_invalid_5.json View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_valid_1.json View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_valid_2.json View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/sandboxed_pages_valid_3.json View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mihai Parparita -not on Chrome
Adam: FYI, this is why I've been bugging you about CSP/sandbox bugs.
8 years, 6 months ago (2012-06-01 00:23:14 UTC) #1
Aaron Boodman
http://codereview.chromium.org/10458063/diff/12001/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): http://codereview.chromium.org/10458063/diff/12001/chrome/browser/extensions/extension_protocols.cc#newcode282 chrome/browser/extensions/extension_protocols.cc:282: content_security_policy = extension->IsResourceSandboxed(resource_path) ? It's kinda a shame that ...
8 years, 6 months ago (2012-06-04 07:05:41 UTC) #2
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10458063/diff/12001/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): http://codereview.chromium.org/10458063/diff/12001/chrome/browser/extensions/extension_protocols.cc#newcode282 chrome/browser/extensions/extension_protocols.cc:282: content_security_policy = extension->IsResourceSandboxed(resource_path) ? On 2012/06/04 07:05:42, Aaron Boodman ...
8 years, 6 months ago (2012-06-04 18:27:02 UTC) #3
Mihai Parparita -not on Chrome
As discussed in #crx, I've switched to: "sadboxed_pages": { "pages": [ "page1.html", "page2.html" ], "content_security_policy": ...
8 years, 6 months ago (2012-06-05 04:32:39 UTC) #4
Mihai Parparita -not on Chrome
PTAL http://codereview.chromium.org/10458063/diff/26001/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): http://codereview.chromium.org/10458063/diff/26001/chrome/renderer/extensions/extension_dispatcher.cc#newcode899 chrome/renderer/extensions/extension_dispatcher.cc:899: // We have an explicit check for sandboxed ...
8 years, 6 months ago (2012-06-05 22:21:56 UTC) #5
Aaron Boodman
On 2012/06/05 22:21:56, Mihai Parparita wrote: > PTAL > > http://codereview.chromium.org/10458063/diff/26001/chrome/renderer/extensions/extension_dispatcher.cc > File chrome/renderer/extensions/extension_dispatcher.cc (right): ...
8 years, 6 months ago (2012-06-05 23:20:11 UTC) #6
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10458063/diff/33002/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): http://codereview.chromium.org/10458063/diff/33002/chrome/renderer/extensions/extension_dispatcher.cc#newcode957 chrome/renderer/extensions/extension_dispatcher.cc:957: // We should never end up with sandboxed contexts ...
8 years, 6 months ago (2012-06-05 23:39:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/10458063/33002
8 years, 6 months ago (2012-06-05 23:39:53 UTC) #8
commit-bot: I haz the power
8 years, 6 months ago (2012-06-06 01:41:25 UTC) #9
Change committed as 140689

Powered by Google App Engine
This is Rietveld 408576698