Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
[Extensions] Add allow-modals to the default sandbox CSP
Browse files Browse the repository at this point in the history
BUG=560226
[email protected]

Review URL: https://codereview.chromium.org/1482243004

Cr-Commit-Position: refs/heads/master@{#362509}
(cherry picked from commit dbadb4c)

Review URL: https://codereview.chromium.org/1495233004 .

Cr-Commit-Position: refs/branch-heads/2564@{#241}
Cr-Branched-From: 1283eca-refs/heads/master@{#359700}
  • Loading branch information
krockot committed Dec 4, 2015
1 parent f5acc8d commit eb90a79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ TEST_F(SandboxedPagesManifestTest, SandboxedPages) {
scoped_refptr<Extension> extension5(
LoadAndExpectSuccess("sandboxed_pages_valid_5.json"));

const char kSandboxedCSP[] = "sandbox allow-scripts allow-forms allow-popups";
const char kSandboxedCSP[] =
"sandbox allow-scripts allow-forms allow-popups allow-modals";
const char kDefaultCSP[] =
"script-src 'self' blob: filesystem: chrome-extension-resource:; "
"object-src 'self' blob: filesystem:;";
Expand Down
2 changes: 1 addition & 1 deletion extensions/common/manifest_handlers/sandboxed_page_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace keys = extensions::manifest_keys;
namespace errors = manifest_errors;

const char kDefaultSandboxedPageContentSecurityPolicy[] =
"sandbox allow-scripts allow-forms allow-popups";
"sandbox allow-scripts allow-forms allow-popups allow-modals";

static base::LazyInstance<SandboxedPageInfo> g_empty_sandboxed_info =
LAZY_INSTANCE_INITIALIZER;
Expand Down

0 comments on commit eb90a79

Please sign in to comment.