⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201499 in webkit


Ignore:
Timestamp:
May 30, 2016, 9:56:24 AM (10 years ago)
Author:
Matt Baker
Message:

Web Inspector: Right-clicking in Snapshot's DataGrid throws an exception
​https://bugs.webkit.org/show_bug.cgi?id=157934
<rdar://problem/26380910>

Reviewed by Brian Burg.

Check that click event target is actually a cell, as it can be a row
when focusing the table after dismissing a popup menu.

  • UserInterface/Views/DataGrid.js:

(WebInspector.DataGridNode.prototype.isEventWithinDisclosureTriangle):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r201477 r201499  
     12016-05-30  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: Right-clicking in Snapshot's DataGrid throws an exception
     4        https://bugs.webkit.org/show_bug.cgi?id=157934
     5        <rdar://problem/26380910>
     6
     7        Reviewed by Brian Burg.
     8
     9        Check that click event target is actually a cell, as it can be a row
     10        when focusing the table after dismissing a popup menu.
     11
     12        * UserInterface/Views/DataGrid.js:
     13        (WebInspector.DataGridNode.prototype.isEventWithinDisclosureTriangle):
     14
    1152016-05-27  Joseph Pecoraro  <pecoraro@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js

    r201245 r201499  
    24672467            return false;
    24682468        let cell = event.target.enclosingNodeOrSelfWithNodeName("td");
    2469         if (!cell.classList.contains("disclosure"))
     2469        if (!cell || !cell.classList.contains("disclosure"))
    24702470            return false;
    24712471
Note: See TracChangeset for help on using the changeset viewer.