Changeset 260761 in webkit


Ignore:
Timestamp:
Apr 27, 2020 9:31:30 AM (4 years ago)
Author:
Nikita Vasilyev
Message:

REGRESSION (r258730): Web Inspector: Sidebar tabs have incorrect tabIndex
https://bugs.webkit.org/show_bug.cgi?id=211072
<rdar://problem/62445067>

Reviewed by Brian Burg.

Only selected radio button should be focusable. This matches native macOS radio buttons.

  • UserInterface/Views/RadioButtonNavigationItem.js:

(WI.RadioButtonNavigationItem.prototype.get tabbable):
This getter was incorrectly returning -1 or 0 instead of a boolean value.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r260743 r260761  
     12020-04-27  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        REGRESSION (r258730): Web Inspector: Sidebar tabs have incorrect tabIndex
     4        https://bugs.webkit.org/show_bug.cgi?id=211072
     5        <rdar://problem/62445067>
     6
     7        Reviewed by Brian Burg.
     8
     9        Only selected radio button should be focusable. This matches native macOS radio buttons.
     10
     11        * UserInterface/Views/RadioButtonNavigationItem.js:
     12        (WI.RadioButtonNavigationItem.prototype.get tabbable):
     13        This getter was incorrectly returning -1 or 0 instead of a boolean value.
     14
    1152020-04-27  Diego Pino Garcia  <dpino@igalia.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/RadioButtonNavigationItem.js

    r258730 r260761  
    7070    get tabbable()
    7171    {
    72         return this.selected ? 0 : -1;
     72        return this.selected;
    7373    }
    7474};
Note: See TracChangeset for help on using the changeset viewer.