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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptController.h

Issue 2421473004: CSP: Fire 'SecurityPolicyViolation' on the offending element. (Closed)
Patch Set: Test. Created 4 years, 2 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/Source/bindings/core/v8/ScriptController.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.h b/third_party/WebKit/Source/bindings/core/v8/ScriptController.h
index 4a2b220880911695a8d3b4e806a04f933eb16d2d..80a098de319df65c1a8c88a10569d820975b01ed 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.h
@@ -47,6 +47,7 @@
namespace blink {
class DOMWrapperWorld;
+class Element;
class ExecutionContext;
class HTMLDocument;
class HTMLPlugInElement;
@@ -113,7 +114,7 @@ class CORE_EXPORT ScriptController final
Vector<v8::Local<v8::Value>>* results);
// Returns true if argument is a JavaScript URL.
- bool executeScriptIfJavaScriptURL(const KURL&);
+ bool executeScriptIfJavaScriptURL(const KURL&, Element*);
// Returns true if the current world is isolated, and has its own Content
// Security Policy. In this case, the policy of the main world should be

Powered by Google App Engine
This is Rietveld 408576698