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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 2490303003: Add once field to devtools so it can be queried by lighthouse. (Closed)
Patch Set: Created 4 years, 1 month 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/inspector/ThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
index f3e1edfd727892f4c577ff8b78de903e94773b91..8bcebd03c830d744079e8b7d6f3b3937b58a3c34 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -414,6 +414,8 @@ void ThreadDebugger::getEventListenersCallback(
v8::Boolean::New(isolate, info.useCapture));
createDataProperty(context, listenerObject, v8String(isolate, "passive"),
v8::Boolean::New(isolate, info.passive));
+ createDataProperty(context, listenerObject, v8String(isolate, "once"),
+ v8::Boolean::New(isolate, info.once));
createDataProperty(context, listenerObject, v8String(isolate, "type"),
v8String(isolate, currentEventType));
v8::Local<v8::Function> removeFunction;

Powered by Google App Engine
This is Rietveld 408576698