summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bindings/js/ScriptEventListener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/js/ScriptEventListener.cpp')
-rw-r--r--Source/WebCore/bindings/js/ScriptEventListener.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/WebCore/bindings/js/ScriptEventListener.cpp b/Source/WebCore/bindings/js/ScriptEventListener.cpp
index d2baf82..3a03f59 100644
--- a/Source/WebCore/bindings/js/ScriptEventListener.cpp
+++ b/Source/WebCore/bindings/js/ScriptEventListener.cpp
@@ -36,7 +36,6 @@
#include "EventListener.h"
#include "JSNode.h"
#include "Frame.h"
-#include "XSSAuditor.h"
#include <runtime/JSLock.h>
using namespace JSC;
@@ -66,11 +65,6 @@ PassRefPtr<JSLazyEventListener> createAttributeEventListener(Node* node, Attribu
if (!scriptController->canExecuteScripts(AboutToExecuteScript))
return 0;
- if (!scriptController->xssAuditor()->canCreateInlineEventListener(attr->localName().string(), attr->value())) {
- // This script is not safe to execute.
- return 0;
- }
-
lineNumber = scriptController->eventHandlerLineNumber();
sourceURL = node->document()->url().string();
}
@@ -94,11 +88,6 @@ PassRefPtr<JSLazyEventListener> createAttributeEventListener(Frame* frame, Attri
if (!scriptController->canExecuteScripts(AboutToExecuteScript))
return 0;
- if (!scriptController->xssAuditor()->canCreateInlineEventListener(attr->localName().string(), attr->value())) {
- // This script is not safe to execute.
- return 0;
- }
-
lineNumber = scriptController->eventHandlerLineNumber();
sourceURL = frame->document()->url().string();
JSObject* wrapper = toJSDOMWindow(frame, mainThreadNormalWorld());