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

Unified Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 2472333003: CSP: "local schemes" should inherit policy when embedded. (Closed)
Patch Set: dcheng@ Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_sanity_browsertest.cc
diff --git a/chrome/browser/devtools/devtools_sanity_browsertest.cc b/chrome/browser/devtools/devtools_sanity_browsertest.cc
index b16018a069fe73ae2ef1aca97d44b809223113d5..08c56d85cc2627e6284e53077f738adae4244259 100644
--- a/chrome/browser/devtools/devtools_sanity_browsertest.cc
+++ b/chrome/browser/devtools/devtools_sanity_browsertest.cc
@@ -978,6 +978,12 @@ IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
dir->WriteManifest(extensions::DictionaryBuilder()
.Set("name", "Devtools Panel")
.Set("version", "1")
+ // Whitelist the script we stuff into the 'blob:' URL:
+ .Set("content_security_policy",
+ "script-src 'self' "
+ "'sha256-95xJWHeV+"
+ "1zjAKQufDVW0misgmR4gCjgpipP2LJ5iis='; "
+ "object-src 'none'")
.Set("manifest_version", 2)
.Set("devtools_page", "devtools.html")
.ToJSON());
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698