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

Unified Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

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
« no previous file with comments | « third_party/WebKit/Source/core/loader/HttpEquiv.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
index a971232ae0f0bd9c3c005480eb543729efe65e01..c707176efa44bd75fe781176e642adca162f59a5 100644
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
@@ -467,8 +467,9 @@ WebString WebPluginContainerImpl::executeScriptURL(const WebURL& url,
return WebString();
if (!m_element->document().contentSecurityPolicy()->allowJavaScriptURLs(
- m_element->document().url(), OrdinalNumber()))
+ m_element, m_element->document().url(), OrdinalNumber())) {
return WebString();
+ }
const KURL& kurl = url;
DCHECK(kurl.protocolIs("javascript"));
« no previous file with comments | « third_party/WebKit/Source/core/loader/HttpEquiv.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698