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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.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
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 79fe934a2cc8b598e652cdd0a0e0115439540fe2..83912c85c72ef76136a71665479b9a957ef579fc 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -951,7 +951,7 @@ bool FrameLoader::prepareRequestForThisFrame(FrameLoadRequest& request) {
return true;
KURL url = request.resourceRequest().url();
- if (m_frame->script().executeScriptIfJavaScriptURL(url))
+ if (m_frame->script().executeScriptIfJavaScriptURL(url, nullptr))
return false;
if (!request.originDocument()->getSecurityOrigin()->canDisplay(url)) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMetaElement.cpp ('k') | third_party/WebKit/Source/core/loader/HttpEquiv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698