summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/ScriptControllerBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/ScriptControllerBase.cpp')
-rw-r--r--Source/WebCore/bindings/ScriptControllerBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebCore/bindings/ScriptControllerBase.cpp b/Source/WebCore/bindings/ScriptControllerBase.cpp
index 855158afc..9b006d2c2 100644
--- a/Source/WebCore/bindings/ScriptControllerBase.cpp
+++ b/Source/WebCore/bindings/ScriptControllerBase.cpp
@@ -32,6 +32,7 @@
#include "SecurityOrigin.h"
#include "Settings.h"
#include "UserGestureIndicator.h"
+#include <wtf/text/TextPosition.h>
namespace WebCore {
@@ -75,7 +76,7 @@ bool ScriptController::executeIfJavaScriptURL(const KURL& url, ShouldReplaceDocu
if (!m_frame->page()
|| !m_frame->page()->javaScriptURLsAreAllowed()
- || !m_frame->document()->contentSecurityPolicy()->allowJavaScriptURLs()
+ || !m_frame->document()->contentSecurityPolicy()->allowJavaScriptURLs(m_frame->document()->url(), eventHandlerPosition().m_line)
|| m_frame->inViewSourceMode())
return true;