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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js

Issue 2160843002: [DevTools] Introduce DOM capability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/sources/EventListenerBreakpointsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
index 207ba22f6024943f96ed8198af0cfc4d708f0f44..3a631945bd4d6d1ffd3917befea2bc09bf04c6a1 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
@@ -42,7 +42,7 @@ WebInspector.EventListenerBreakpointsSidebarPane = function()
this._createCategory(WebInspector.UIString("Window"), ["close"], true);
this._createCategory(WebInspector.UIString("XHR"), ["readystatechange", "load", "loadstart", "loadend", "abort", "error", "progress", "timeout"], false, ["XMLHttpRequest", "XMLHttpRequestUpload"]);
- WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capability.Browser);
+ WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capability.DOM);
}
WebInspector.EventListenerBreakpointsSidebarPane.categoryListener = "listener:";
@@ -234,7 +234,7 @@ WebInspector.EventListenerBreakpointsSidebarPane.prototype = {
*/
_updateBreakpointOnTarget: function(eventName, eventTargetName, enable, target)
{
- var targets = target ? [target] : WebInspector.targetManager.targets(WebInspector.Target.Capability.Browser);
+ var targets = target ? [target] : WebInspector.targetManager.targets(WebInspector.Target.Capability.DOM);
for (target of targets) {
if (eventName.startsWith(WebInspector.EventListenerBreakpointsSidebarPane.categoryListener)) {
var protocolEventName = eventName.substring(WebInspector.EventListenerBreakpointsSidebarPane.categoryListener.length);

Powered by Google App Engine
This is Rietveld 408576698