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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 2040903002: Whitelist themes in CSP of chrome://newtab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index a9812b4e0d2724d6d5d5ff909083a5121ba17172..229dd3c3424a888f304039226df874991da450c4 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -242,7 +242,8 @@ std::string NewTabUI::NewTabHTMLSource::GetContentSecurityPolicyStyleSrc()
std::string NewTabUI::NewTabHTMLSource::GetContentSecurityPolicyImgSrc()
const {
- return "img-src chrome-search://thumb chrome-search://thumb2 data:;";
+ return "img-src chrome-search://thumb chrome-search://thumb2 "
+ "chrome-search://theme chrome://theme data:;";
}
std::string NewTabUI::NewTabHTMLSource::GetContentSecurityPolicyChildSrc()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698