Bug 258136

Summary: Web Inspector: REGRESSION(264158@main) Sources tab never shows files when inspecting JS Context
Product: WebKit Reporter: Razvan Caliman <rcaliman>
Component: Web InspectorAssignee: Razvan Caliman <rcaliman>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Screenshot of uncaught exception none

Description Razvan Caliman 2023-06-15 08:11:32 PDT
Created attachment 466702 [details]
Screenshot of uncaught exception

Regressed by https://commits.webkit.org/264158@main in https://github.com/WebKit/WebKit/pull/13617

Unable to inspect JS Contexts because of uncaught exception:

```
TypeError:​ null is not an object (evaluating 'script.displayName')​ (at ScriptTreeElement.js:​32:​39)​
    ScriptTreeElement @ ScriptTreeElement.js:​32:​39
    WorkerTreeElement @ WorkerTreeElement.js:​41:​14
    _addWorkerTargetWithMainResource @ SourcesNavigationSidebarPanel.js:​1317:​57
    _handleResourceGroupingModeChanged @ SourcesNavigationSidebarPanel.js:​2387:​54
    SourcesNavigationSidebarPanel @ SourcesNavigationSidebarPanel.js:​413:​48
    navigationSidebarPanel @ TabContentView.js:​189:​87
    attached @ ContentBrowserTabContentView.js:​98:​17
    _didMoveToParent @ View.js:​272:​30
    insertSubviewBefore @ View.js:​117:​30
    addSubview @ View.js:​89:​33
    _showEntry @ ContentViewContainer.js:​468:​28
    showBackForwardEntryForIndex @ ContentViewContainer.js:​171:​24
    showContentView @ ContentViewContainer.js:​148:​42
    _tabBarItemSelected @ TabBrowser.js:​246:​55
    dispatch @ Object.js:​134:​35
    dispatchEventToListeners @ Object.js:​142:​17
    selectTabBarItem @ TabBar.js:​402:​38
    _handleTabContainerMouseDown @ TabBar.js:​698:​30
```
Comment 1 Razvan Caliman 2023-06-15 08:12:05 PDT
rdar://110119826
Comment 2 Razvan Caliman 2023-06-15 08:16:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15004
Comment 3 EWS 2023-06-15 14:05:05 PDT
Committed 265209@main (1ea561941b37): <https://commits.webkit.org/265209@main>

Reviewed commits have been landed. Closing PR #15004 and removing active labels.