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

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

Issue 2012393003: Replace frame-src with child-src in WebUI CSP (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@csp
Patch Set: Created 4 years, 7 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 | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | 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 cc63f1604961963f432f9748943c38cf894a9452..8872fc9a2a7a8f7ba2a398cffea9aae9cf259575 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -245,9 +245,9 @@ std::string NewTabUI::NewTabHTMLSource::GetContentSecurityPolicyImgSrc()
return "img-src chrome-search://thumb chrome-search://thumb2 data:;";
}
-std::string NewTabUI::NewTabHTMLSource::GetContentSecurityPolicyFrameSrc()
+std::string NewTabUI::NewTabHTMLSource::GetContentSecurityPolicyChildSrc()
const {
- return "frame-src chrome-search://most-visited;";
+ return "child-src chrome-search://most-visited;";
}
void NewTabUI::NewTabHTMLSource::AddResource(const char* resource,
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698