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

Changeset 267546 in webkit


Ignore:
Timestamp:
Sep 24, 2020, 2:47:43 PM (6 years ago)
Author:
Nikita Vasilyev
Message:

REGRESSION(r267379): Web Inspector: Sources navigation sidebar is empty every other time it's selected
https://bugs.webkit.org/show_bug.cgi?id=216942
<rdar://problem/69520398>

Reviewed by Brian Burg.

  • UserInterface/Views/Sidebar.js:

(WI.Sidebar.prototype.insertSidebarPanel):
insertSidebarPanel was exiting early when sidebarPanel.parentSidebar matched the current sidebar,
creating a state when this._sidebarPanels is an empty array.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r267411 r267546  
     12020-09-24  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        REGRESSION(r267379): Web Inspector: Sources navigation sidebar is empty every other time it's selected
     4        https://bugs.webkit.org/show_bug.cgi?id=216942
     5        <rdar://problem/69520398>
     6
     7        Reviewed by Brian Burg.
     8
     9        * UserInterface/Views/Sidebar.js:
     10        (WI.Sidebar.prototype.insertSidebarPanel):
     11        insertSidebarPanel was exiting early when sidebarPanel.parentSidebar matched the current sidebar,
     12        creating a state when `this._sidebarPanels` is an empty array.
     13
    1142020-09-22  Brian Burg  <bburg@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/Sidebar.js

    r267379 r267546  
    7373            return;
    7474
    75         console.assert(!sidebarPanel.parentSidebar);
    76         if (sidebarPanel.parentSidebar)
    77             return;
     75        if (sidebarPanel.parentSidebar && sidebarPanel.parentSidebar !== this) {
     76            console.assert(false, "Failed to insert sidebar panel", sidebarPanel);
     77            return;
     78        }
    7879
    7980        console.assert(index >= 0 && index <= this._sidebarPanels.length);
Note: See TracChangeset for help on using the changeset viewer.