Changeset 257622 in webkit


Ignore:
Timestamp:
Feb 28, 2020 12:44:59 AM (4 years ago)
Author:
Nikita Vasilyev
Message:

REGRESSION(r257411): Web Inspector: Can't add a breakpoint by pressing the plus button
https://bugs.webkit.org/show_bug.cgi?id=208359
<rdar://problem/59870712>

Reviewed by Brian Burg.

In r257411 I added event.stop() (which is a shortcut for event.preventDefault() and
event.stopImmediatePropagation()) to mousedown handler. Calling event.stopImmediatePropagation()
prevented other mousedown event handlers from running.

This patch no longer calls event.stopImmediatePropagation().

  • UserInterface/Views/ButtonNavigationItem.js:

(WI.ButtonNavigationItem.prototype._handleMouseDown):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r257620 r257622  
     12020-02-28  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        REGRESSION(r257411): Web Inspector: Can't add a breakpoint by pressing the plus button
     4        https://bugs.webkit.org/show_bug.cgi?id=208359
     5        <rdar://problem/59870712>
     6
     7        Reviewed by Brian Burg.
     8
     9        In r257411 I added event.stop() (which is a shortcut for event.preventDefault() and
     10        event.stopImmediatePropagation()) to mousedown handler. Calling event.stopImmediatePropagation()
     11        prevented other mousedown event handlers from running.
     12
     13        This patch no longer calls event.stopImmediatePropagation().
     14
     15        * UserInterface/Views/ButtonNavigationItem.js:
     16        (WI.ButtonNavigationItem.prototype._handleMouseDown):
     17
    1182020-02-27  Devin Rousso  <drousso@apple.com>
    219
  • trunk/Source/WebInspectorUI/UserInterface/Views/ButtonNavigationItem.js

    r257411 r257622  
    158158    {
    159159        // Clicking on a button should NOT focus on it.
    160         event.stop();
     160        event.preventDefault();
    161161    }
    162162
Note: See TracChangeset for help on using the changeset viewer.