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

Unified Diff: third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h

Issue 2761153003: PlzNavigate & CSP. Use the SourceLocation in violation reports. (Closed)
Patch Set: Nit. Created 3 years, 9 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: third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
diff --git a/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h b/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
index e91858e3f85cad6af14a8f1792ec8d2b7ab622f4..4a8fc8c9a28836dc883f3d16ce11fe432211d4df 100644
--- a/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
+++ b/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
@@ -32,6 +32,7 @@
#define WebContentSecurityPolicyStruct_h
#include "public/platform/WebContentSecurityPolicy.h"
+#include "public/platform/WebSourceLocation.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebVector.h"
@@ -98,6 +99,9 @@ struct WebContentSecurityPolicyViolation {
// Whether or not the violation happens after a redirect.
bool afterRedirect;
+
+ // The source code location that triggered the blocked navigation.
+ WebSourceLocation sourceLocation;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698