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

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

Issue 2869423002: PlzNavigate: Do not disclose urls between cross-origin renderers. (Closed)
Patch Set: 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..47159f305f8991a0bee965f4521aa45a24daee4d 100644
--- a/content/common/content_security_policy/csp_context.cc
+++ b/content/common/content_security_policy/csp_context.cc
@@ -66,6 +66,11 @@ bool CSPContext::SchemeShouldBypassCSP(const base::StringPiece& scheme) {
return false;
}
+bool CSPContext::IsOriginSafeToUseInCspViolation(
+ const url::Origin& origin) const {
+ return true;
+}
+
bool CSPContext::SelfSchemeShouldBypassCsp() {
if (!has_self_)
return false;

Powered by Google App Engine
This is Rietveld 408576698