Bug 188803

Summary: Web Inspector: cannot delete multiple event breakpoints by repeatedly hitting delete
Product: WebKit Reporter: Matt Baker <mattbaker>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Matt Baker 2018-08-21 12:31:50 PDT
The next breakpoint in the tree is selected, but doesn't have the focus, preventing the next delete key press to do nothing.

Steps to Reproduce:
1. Debugger tab
2. Add multiple Event Breakpoints
3. Select the last breakpoint item in the list
4. Press the delete key
  => Breakpoint deleted, previous breakpoint item is selected
5. Hit delete key
  => Nothing happens, because the tree outline has lost the focus
Comment 1 Radar WebKit Bug Importer 2018-08-21 12:34:03 PDT
<rdar://problem/43572838>
Comment 2 Devin Rousso 2018-08-21 23:50:21 PDT
Created attachment 347771 [details]
Patch
Comment 3 Matt Baker 2018-08-22 10:29:08 PDT
Comment on attachment 347771 [details]
Patch

We removed and re-appended the tree whenever a breakpoint was deleted! Looks like copypasta from the broken code I added for DOM breakpoints. :(
Comment 4 WebKit Commit Bot 2018-08-22 10:56:50 PDT
Comment on attachment 347771 [details]
Patch

Clearing flags on attachment: 347771

Committed r235183: <https://trac.webkit.org/changeset/235183>
Comment 5 WebKit Commit Bot 2018-08-22 10:56:52 PDT
All reviewed patches have been landed.  Closing bug.