Web Inspector: Elements: setting a breakpoint on a specific listener should enable...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Aug 2019 08:45:41 +0000 (08:45 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Aug 2019 08:45:41 +0000 (08:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=200551

Reviewed by Joseph Pecoraro.

* UserInterface/Views/EventListenerSectionGroup.js:
(WI.EventListenerSectionGroup):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248765 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js

index 523abe9..e1e8592 100644 (file)
@@ -1,3 +1,13 @@
+2019-08-16  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: Elements: setting a breakpoint on a specific listener should enable the event listener
+        https://bugs.webkit.org/show_bug.cgi?id=200551
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/EventListenerSectionGroup.js:
+        (WI.EventListenerSectionGroup):
+
 2019-08-15  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Update Esprima to support modern JavaScript language features
index 81002cc..686f9f7 100644 (file)
@@ -59,6 +59,7 @@ WI.EventListenerSectionGroup = class EventListenerSectionGroup extends WI.Detail
                 this._updateDisabledToggle();
                 this._eventListenerEnabledToggleElement.addEventListener("change", (event) => {
                     this.isEventListenerDisabled = !this._eventListenerEnabledToggleElement.checked;
+                    this.hasEventListenerBreakpoint = false;
                 });
 
                 let toggleLabel = document.createElement("span");
@@ -75,6 +76,7 @@ WI.EventListenerSectionGroup = class EventListenerSectionGroup extends WI.Detail
                 this._eventListenerBreakpointToggleElement.type = "checkbox";
                 this._updateBreakpointToggle();
                 this._eventListenerBreakpointToggleElement.addEventListener("change", (event) => {
+                    this.isEventListenerDisabled = false;
                     this.hasEventListenerBreakpoint = !!this._eventListenerBreakpointToggleElement.checked;
                 });