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

Side by Side Diff: chrome/browser/extensions/sandboxed_pages_apitest.cc

Issue 2563843002: Restrict app sandbox's CSP to disallow loading web content in them. (Closed)
Patch Set: sync @tott Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 6
7 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) { 7 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) {
8 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_; 8 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_;
9 } 9 }
10
11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPagesCSP) {
12 ASSERT_TRUE(StartEmbeddedTestServer());
13
14 // This app attempts to load remote web content inside a sandboxed page.
15 // Loading web content will fail because of CSP. In addition to that we will
16 // show manifest warnings, hence the kFlagIgnoreManifestWarnings.
17 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages_csp", "main.html",
18 kFlagIgnoreManifestWarnings))
19 << message_;
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698