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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js

Issue 2393763002: [DevTools] Cleanup DOMExtension.js. (Closed)
Patch Set: review comments Created 4 years, 2 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
Index: third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
index fd240d640c752f8e3f56f0b03dd9fc6964660846..03d4b49439aaf8d0023c95e18ad2eee031e27984 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
@@ -18,7 +18,7 @@ WebInspector.BlockedURLsPane = function()
this._blockedURLsSetting.addChangeListener(this._update, this);
this._toolbar = new WebInspector.Toolbar("", this.contentElement);
- this._toolbar.element.addEventListener("click", consumeEvent);
+ this._toolbar.element.addEventListener("click", (e) => e.consume());
var addButton = new WebInspector.ToolbarButton(WebInspector.UIString("Add pattern"), "add-toolbar-item");
addButton.addEventListener("click", this._addButtonClicked.bind(this));
this._toolbar.appendToolbarItem(addButton);

Powered by Google App Engine
This is Rietveld 408576698