Changeset 269755 in webkit


Ignore:
Timestamp:
Nov 12, 2020 2:49:39 PM (3 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION(?): Graphics: cannot click on recording icon more than once
https://bugs.webkit.org/show_bug.cgi?id=218834

Reviewed by Brian Burg.

  • UserInterface/Views/ContextMenuUtilities.js:

(WI.addMouseDownContextMenuHandlers):
Only ignore future "mousedown" events if the WI.ContextMenu actually has items.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r269754 r269755  
     12020-11-12  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION(?): Graphics: cannot click on recording icon more than once
     4        https://bugs.webkit.org/show_bug.cgi?id=218834
     5
     6        Reviewed by Brian Burg.
     7
     8        * UserInterface/Views/ContextMenuUtilities.js:
     9        (WI.addMouseDownContextMenuHandlers):
     10        Only ignore future `"mousedown"` events if the `WI.ContextMenu` actually has items.
     11
    1122020-11-12  Devin Rousso  <drousso@apple.com>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js

    r269337 r269755  
    3636            return;
    3737
    38         ignoreMouseDown = true;
    39 
    4038        let contextMenu = WI.ContextMenu.createFromEvent(event);
    4139        contextMenu.addBeforeShowCallback(() => {
     
    4543        populateContextMenuCallback(contextMenu, event);
    4644
     45        ignoreMouseDown = !contextMenu.isEmpty();
    4746        contextMenu.show();
    4847    });
Note: See TracChangeset for help on using the changeset viewer.