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

Unified Diff: content/common/content_security_policy/csp_context.cc

Issue 2869423002: PlzNavigate: Do not disclose urls between cross-origin renderers. (Closed)
Patch Set: Applying suggestions. Created 3 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
Index: content/common/content_security_policy/csp_context.cc
diff --git a/content/common/content_security_policy/csp_context.cc b/content/common/content_security_policy/csp_context.cc
index ab249dd3f25840268f907498e737c57f4e1f32eb..95a890df0000e968eb8ef9b077e4127cf5485ac4 100644
--- a/content/common/content_security_policy/csp_context.cc
+++ b/content/common/content_security_policy/csp_context.cc
@@ -66,6 +66,14 @@ bool CSPContext::SchemeShouldBypassCSP(const base::StringPiece& scheme) {
return false;
}
+void CSPContext::SanitizeDataForUseInCspViolation(
+ GURL* blocked_url,
+ SourceLocation* source_location,
+ bool is_redirect,
+ CSPDirective::Name directive) const {
+ return;
+}
+
bool CSPContext::SelfSchemeShouldBypassCsp() {
if (!has_self_)
return false;

Powered by Google App Engine
This is Rietveld 408576698