Web Inspector: cannot delete multiple event breakpoints by repeatedly hitting delete
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Aug 2018 17:56:44 +0000 (17:56 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Aug 2018 17:56:44 +0000 (17:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=188803
<rdar://problem/43572838>

Reviewed by Matt Baker.

* UserInterface/Views/DebuggerSidebarPanel.js:
(WI.DebuggerSidebarPanel.prototype._domBreakpointAddedOrRemoved):
(WI.DebuggerSidebarPanel.prototype._eventBreakpointAddedOrRemoved):

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

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

index 5d7f041..9525247 100644 (file)
@@ -1,3 +1,15 @@
+2018-08-22  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: cannot delete multiple event breakpoints by repeatedly hitting delete
+        https://bugs.webkit.org/show_bug.cgi?id=188803
+        <rdar://problem/43572838>
+
+        Reviewed by Matt Baker.
+
+        * UserInterface/Views/DebuggerSidebarPanel.js:
+        (WI.DebuggerSidebarPanel.prototype._domBreakpointAddedOrRemoved):
+        (WI.DebuggerSidebarPanel.prototype._eventBreakpointAddedOrRemoved):
+
 2018-08-22  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         Unreviewed. Do not include TreeOutlineDataGridSynchronizer.js in inspector main.
index 4e23315..89e3623 100644 (file)
@@ -1223,7 +1223,7 @@ WI.DebuggerSidebarPanel = class DebuggerSidebarPanel extends WI.NavigationSideba
             return;
         }
 
-        if (this._domBreakpointsContentTreeOutline.element.parent)
+        if (this._domBreakpointsContentTreeOutline.element.parentNode)
             return;
 
         this._domBreakpointsRow.hideEmptyMessage();
@@ -1239,7 +1239,7 @@ WI.DebuggerSidebarPanel = class DebuggerSidebarPanel extends WI.NavigationSideba
             return;
         }
 
-        if (this._eventBreakpointsContentTreeOutline.element.parent)
+        if (this._eventBreakpointsContentTreeOutline.element.parentNode)
             return;
 
         this._eventBreakpointsRow.hideEmptyMessage();