Index: Source/bindings/core/v8/V8EventListener.cpp |
diff --git a/Source/bindings/core/v8/V8EventListener.cpp b/Source/bindings/core/v8/V8EventListener.cpp |
index 73d710865bea229be6e8d2aa62cbfea572280b2d..6bb4c77f3b93b92372951281c1aaebcef668f2e0 100644 |
--- a/Source/bindings/core/v8/V8EventListener.cpp |
+++ b/Source/bindings/core/v8/V8EventListener.cpp |
@@ -69,21 +69,33 @@ v8::Local<v8::Function> V8EventListener::getListenerFunction(ExecutionContext*) |
v8::Local<v8::Value> V8EventListener::callListenerFunction(v8::Handle<v8::Value> jsEvent, Event* event) |
{ |
+ fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); |
v8::Local<v8::Function> handlerFunction = getListenerFunction(scriptState()->executionContext()); |
v8::Local<v8::Object> receiver = getReceiverObject(event); |
- if (handlerFunction.IsEmpty() || receiver.IsEmpty()) |
+ if (handlerFunction.IsEmpty() || receiver.IsEmpty()) { |
+ fprintf(stderr, "handlerFunction.IsEmpty = %d\n", handlerFunction.IsEmpty()); |
+ fprintf(stderr, "receiver.IsEmpty = %d\n", receiver.IsEmpty()); |
+ fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); |
return v8::Local<v8::Value>(); |
+ } |
- if (!scriptState()->executionContext()->isDocument()) |
+ if (!scriptState()->executionContext()->isDocument()) { |
+ fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); |
return v8::Local<v8::Value>(); |
+ } |
LocalFrame* frame = toDocument(scriptState()->executionContext())->frame(); |
- if (!frame) |
+ if (!frame) { |
+ fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); |
return v8::Local<v8::Value>(); |
+ } |
- if (!frame->script().canExecuteScripts(AboutToExecuteScript)) |
+ if (!frame->script().canExecuteScripts(AboutToExecuteScript)) { |
+ fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); |
return v8::Local<v8::Value>(); |
+ } |
+ fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); |
v8::Handle<v8::Value> parameters[1] = { jsEvent }; |
return frame->script().callFunction(handlerFunction, receiver, WTF_ARRAY_LENGTH(parameters), parameters); |
} |