Bug 247352 - Web Inspector: scripts names redundancy in the list of files in Sources
Summary: Web Inspector: scripts names redundancy in the list of files in Sources
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: https://jira.atlassian.com/browse/JRA...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-01 21:20 PDT by Karl Dubost
Modified: 2022-11-08 20:21 PST (History)
4 users (show)

See Also:


Attachments
view of the script name redundancy. (139.43 KB, image/png)
2022-11-01 21:20 PDT, Karl Dubost
no flags Details
view by path (108.46 KB, image/png)
2022-11-03 17:41 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>