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

Unified Diff: Source/devtools/front_end/elements/ElementsPanel.js

Issue 1042853004: [DevTools] Event Listeners Sidebar shows window listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test Created 5 years, 8 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: Source/devtools/front_end/elements/ElementsPanel.js
diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
index 73bf9a559fd8cd8e953b1fc73ad03ad5b0df79d0..0f090bc396ae7965274a00ba223fe8472e717b58 100644
--- a/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/Source/devtools/front_end/elements/ElementsPanel.js
@@ -82,6 +82,7 @@ WebInspector.ElementsPanel = function()
this.sidebarPanes.properties = new WebInspector.PropertiesSidebarPane();
this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.createProxy(this);
this.sidebarPanes.eventListeners = new WebInspector.EventListenersSidebarPane();
+ this.sidebarPanes.objectEventListeners = new WebInspector.ObjectEventListenersSidebarPane();
if (Runtime.experiments.isEnabled("animationInspection"))
this.sidebarPanes.animations = new WebInspector.AnimationsSidebarPane();
@@ -318,6 +319,7 @@ WebInspector.ElementsPanel.prototype = {
this._updateCSSSidebars();
this.sidebarPanes.properties.setNode(this.selectedDOMNode());
this.sidebarPanes.eventListeners.setNode(this.selectedDOMNode());
+ this.sidebarPanes.objectEventListeners.update();
if (this.sidebarPanes.animations)
this.sidebarPanes.animations.setNode(this.selectedDOMNode());
for (var sidebarView of this._elementsSidebarViewWrappers)
@@ -971,6 +973,7 @@ WebInspector.ElementsPanel.prototype = {
this.sidebarPanes.platformFonts.show(computedStylePanesWrapper);
this.sidebarPaneView.addPane(this.sidebarPanes.eventListeners);
+ this.sidebarPaneView.addPane(this.sidebarPanes.objectEventListeners);
this.sidebarPaneView.addPane(this.sidebarPanes.domBreakpoints);
this.sidebarPaneView.addPane(this.sidebarPanes.properties);
if (this.sidebarPanes.animations)

Powered by Google App Engine
This is Rietveld 408576698