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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.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/InspectorDOMDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
index 606b0dfa8ca714351c6b050d3b04e42d85d3c1f8..1b467b0cba8fbede49f47af5e965ac902f657374 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
@@ -216,7 +216,8 @@ void InspectorDOMDebuggerAgent::eventListenersInfoForTarget(
continue;
bool useCapture = listeners->at(k).capture();
eventInformation.append(V8EventListenerInfo(
- type, useCapture, listeners->at(k).passive(), handler,
+ type, useCapture, listeners->at(k).passive(), listeners->at(k).once(),
+ handler,
createRemoveFunction(context, value, handler, type, useCapture)));
}
}
@@ -525,6 +526,7 @@ InspectorDOMDebuggerAgent::buildObjectForEventListener(
.setType(info.eventType)
.setUseCapture(info.useCapture)
.setPassive(info.passive)
+ .setOnce(info.once)
.setScriptId(scriptId)
.setLineNumber(lineNumber)
.setColumnNumber(columnNumber)

Powered by Google App Engine
This is Rietveld 408576698