Changeset 243816 in webkit


Ignore:
Timestamp:
Apr 3, 2019 11:05:03 AM (5 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Uncaught Exception: TypeError: this._computedStyleSection.focus is not a function. (In 'this._computedStyleSection.focus()', 'this._computedStyleSection.focus' is undefined)
https://bugs.webkit.org/show_bug.cgi?id=192108
<rdar://problem/46685392>

Reviewed by Devin Rousso.

This patch fixes the uncaught exception. Tabbing to and from "Properties" section continues
working the same way as before the patch.

  • UserInterface/Views/ComputedStyleDetailsPanel.js:

(WI.ComputedStyleDetailsPanel.prototype.focusFirstSection): Deleted.
(WI.ComputedStyleDetailsPanel.prototype.focusLastSection): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r243781 r243816  
     12019-04-03  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Uncaught Exception: TypeError: this._computedStyleSection.focus is not a function. (In 'this._computedStyleSection.focus()', 'this._computedStyleSection.focus' is undefined)
     4        https://bugs.webkit.org/show_bug.cgi?id=192108
     5        <rdar://problem/46685392>
     6
     7        Reviewed by Devin Rousso.
     8
     9        This patch fixes the uncaught exception. Tabbing to and from "Properties" section continues
     10        working the same way as before the patch.
     11
     12        * UserInterface/Views/ComputedStyleDetailsPanel.js:
     13        (WI.ComputedStyleDetailsPanel.prototype.focusFirstSection): Deleted.
     14        (WI.ComputedStyleDetailsPanel.prototype.focusLastSection): Deleted.
     15
    1162019-04-02  Devin Rousso  <drousso@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js

    r240691 r243816  
    7777        if (this._delegate.computedStyleDetailsPanelShowProperty)
    7878            this._delegate.computedStyleDetailsPanelShowProperty(property);
    79     }
    80 
    81     focusFirstSection()
    82     {
    83         this._computedStyleSection.focus();
    84     }
    85 
    86     focusLastSection()
    87     {
    88         this._variablesTextEditor.focus();
    8979    }
    9080
Note: See TracChangeset for help on using the changeset viewer.