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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html

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/LayoutTests/inspector/elements/event-listener-sidebar.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html b/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html
index 1fa1cc83e2bbd7c93ab3e768404b89b0fcee224d..4b90125b9e35f0a77e4d8d7140f5d64a0d33696f 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/event-listener-sidebar.html
@@ -20,7 +20,7 @@ function setupEventListeners()
document.addEventListener("mousedown", f, false);
document.removeEventListener("mousedown", f, false);
- document.body.addEventListener("custom event", f, true);
+ document.body.addEventListener("custom event", f, {capture: true, once: true});
function ObjectHandler() { document.addEventListener("click", this, true); }
ObjectHandler.prototype.toString = function() { return "ObjectHandler"; }

Powered by Google App Engine
This is Rietveld 408576698