Bug 247352

Summary: Web Inspector: scripts names redundancy in the list of files in Sources
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hi, inspector-bugzilla-changes, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   
URL: https://jira.atlassian.com/browse/JRACLOUD-64367
Attachments:
Description Flags
view of the script name redundancy.
none
view by path none

Description Karl Dubost 2022-11-01 21:20:09 PDT
Created attachment 463358 [details]
view of the script name redundancy.

Steps to reproduce:

1. Go to https://jira.atlassian.com/browse/JRACLOUD-64367
2. Open Web Inspector
3. Go to Sources
4. Select by Type in the left column
5. Open le Scripts folder

Expected:
A single instance of the name. 
If there's a meaningful reason for the repeat, then something which disambiguate the names.

Actual:
See how some names are being repeated a couple of times. 
Such as batch.js
Comment 1 Patrick Angle 2022-11-02 08:19:12 PDT
Those scripts are indeed unique resources loaded over the network. The details sidebar shows similar, but different URLs for them. If you change the sources list from "By Type" to "By Path", they are also disambiguated.

I agree the ambiguity here isn't ideal though.
Comment 2 Devin Rousso 2022-11-03 09:51:03 PDT
perhaps related to bug 143632?
Comment 3 Karl Dubost 2022-11-03 17:41:14 PDT
Created attachment 463394 [details]
view by path

Yes Bug 143632 looks to be the same.
Disambiguating the UI on the other hand will be challenging, given the names of the folders.
Comment 4 Radar WebKit Bug Importer 2022-11-08 20:21:19 PST
<rdar://problem/102122685>