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

Unified Diff: chrome/browser/search/local_ntp_source.cc

Issue 2856133002: Local NTP: Allow iframes from *.google.com (Closed)
Patch Set: Created 3 years, 8 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/search/local_ntp_source.cc
diff --git a/chrome/browser/search/local_ntp_source.cc b/chrome/browser/search/local_ntp_source.cc
index 82c7d3a7dcf71789797d82f3adfc3815098ed574..85821bc805245b8f04dc42d5d69acd09c9aacbcf 100644
--- a/chrome/browser/search/local_ntp_source.cc
+++ b/chrome/browser/search/local_ntp_source.cc
@@ -431,11 +431,8 @@ std::string LocalNtpSource::GetContentSecurityPolicyChildSrc() const {
if (one_google_bar_service_) {
// Allow embedding of the most visited iframe, as well as the account
// switcher and the notifications dropdown from the One Google Bar.
- // TODO(treib): Figure out a way to also allow staging instances.
- return base::StringPrintf(
- "child-src %s https://accounts.google.com/ https://docs.google.com "
- "https://notifications.google.com;",
- chrome::kChromeSearchMostVisitedUrl);
fhorschig 2017/05/03 10:41:59 As discussed offline, please point this out in the
+ return base::StringPrintf("child-src %s https://*.google.com/;",
+ chrome::kChromeSearchMostVisitedUrl);
}
// Allow embedding of the most visited iframe.
return base::StringPrintf("child-src %s;",
« 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