RESOLVED FIXED303833
Web Inspector: Sources Navigation Sidebar is sometimes empty on page reload
https://bugs.webkit.org/show_bug.cgi?id=303833
Summary Web Inspector: Sources Navigation Sidebar is sometimes empty on page reload
Razvan Caliman
Reported 2025-12-09 06:27:24 PST
This intermittent issue is caused by an unhandled exception. In a Release build, this manifests as a an empty tree outline for the main frame. Steps: - inspect webkit.org - go to Sources tab - select a resource from the sidebar - reload the page - select another resource from the sidebar - reload the page again Result: Sometimes, the tree outline for the main frame is empty. Its disclosure triangle shows it expanded, but there are no children. Toggling the disclosure triangle off and back on again reveals the tree elements for loaded resources. --- TypeError:​ undefined is not an object (evaluating 'treeElement.parent._childrenListNode.appendChild')​ (at TreeOutline.js:​1001:​49)​ _updateVirtualizedElements @ TreeOutline.js:​1001:​49 boundUpdateVirtualizedElements @ TreeOutline.js:​688:​44 _execute @ Debouncer.js:​132:​29 force @ Debouncer.js:​63:​22 reveal @ TreeElement.js:​508:​70 revealAndSelect @ TreeElement.js:​564:​20 _revealAndSelectRepresentedObject @ ContentBrowserTabContentView.js:​317:​40 _contentBrowserCurrentContentViewDidChange @ ContentBrowserTabContentView.js:​299:​47 dispatch @ Object.js:​134:​35 dispatchEventToListeners @ Object.js:​142:​17 _currentContentViewDidChange @ ContentBrowser.js:​540:​38 dispatch @ Object.js:​134:​35 dispatchEventToListeners @ Object.js:​142:​17 showBackForwardEntryForIndex @ ContentViewContainer.js:​173:​38 showContentView @ ContentViewContainer.js:​148:​42 showDefaultContentViewForTreeElement @ NavigationSidebarPanel.js:​208:​82 _checkElementsForPendingViewStateCookie @ NavigationSidebarPanel.js:​708:​79 _treeElementAddedOrChanged @ NavigationSidebarPanel.js:​613:​57 dispatch @ Object.js:​134:​35 dispatchEventToListeners @ Object.js:​142:​17 insertChild @ TreeOutline.js:​290:​54 _insertChildTreeElement @ FolderizedTreeElement.js:​246:​38 _addTreeElement @ FolderizedTreeElement.js:​216:​37 addChildForRepresentedObject @ FolderizedTreeElement.js:​103:​29 onpopulate @ FrameTreeElement.js:​169:​46 traverseNextTreeElement @ TreeElement.js:​616:​31 ?​ @ NavigationSidebarPanel.js:​660:​80 forEach @ [native code]​ _checkOutlinesForPendingViewStateCookie @ NavigationSidebarPanel.js:​653:​41 restoreStateFromCookie @ NavigationSidebarPanel.js:​251:​53 restoreStateFromCookie @ TabContentView.js:​165:​63 ?​ @ Main.js:​1756:​46 ?​ @ Main.js:​1732:​37
Attachments
Screen recording of issue (6.16 MB, video/quicktime)
2025-12-09 06:29 PST, Razvan Caliman
no flags
Radar WebKit Bug Importer
Comment 1 2025-12-09 06:28:17 PST
Razvan Caliman
Comment 2 2025-12-09 06:29:47 PST
Created attachment 477675 [details] Screen recording of issue
Razvan Caliman
Comment 3 2025-12-09 06:49:56 PST
EWS
Comment 4 2025-12-10 04:52:58 PST
Committed 304221@main (97a29a8fcc7f): <https://commits.webkit.org/304221@main> Reviewed commits have been landed. Closing PR #55109 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.