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

Unified Diff: Source/bindings/core/v8/V8EventListener.cpp

Issue 938553003: [DO NOT COMMIT] [DO NOT REVIEW] XHR timeout layout test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | « Source/bindings/core/v8/V8Binding.cpp ('k') | Source/bindings/core/v8/V8EventListenerList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/bindings/core/v8/V8Binding.cpp ('k') | Source/bindings/core/v8/V8EventListenerList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698