Bug 271880 - "Extra Scripts/Style Sheets" and missing sourceMappingURL issue
Summary: "Extra Scripts/Style Sheets" and missing sourceMappingURL issue
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-28 23:57 PDT by Przemyslaw Gorszkowski
Modified: 2024-04-04 23:58 PDT (History)
3 users (show)

See Also:


Attachments
Screenshot with index.js file inside "Extra Scripts" folder (117.91 KB, image/png)
2024-03-28 23:57 PDT, Przemyslaw Gorszkowski
no flags Details
Screenshot with index.js file not in "Extra Scripts" folder (102.87 KB, image/png)
2024-03-28 23:59 PDT, Przemyslaw Gorszkowski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Przemyslaw Gorszkowski 2024-03-28 23:57:26 PDT
Created attachment 470660 [details]
Screenshot with index.js file inside "Extra Scripts" folder

inconsistent behaviour in case of WebInspector and "Extra Scripts". The inconsistency is observed with this simple test case:

<html>
<head>
<script src="https://player-stable-endpoint.prd.mp.itv.com/ctv/virginmedia"></script>
<body>
</body>
</html>

https://player-stable-endpoint.prd.mp.itv.com/ctv/virginmedia redirects to https://player-stable-endpoint.prd.mp.itv.com/ctv/1.14.5/index.js.
https://player-stable-endpoint.prd.mp.itv.com/ctv/1.14.5/index.js contains "//# sourceMappingURL=index.js.map" but index.js.map does not exist on server

When we open site with simple test case, and then webinspector and we go to Sources we see "Extra Scripts" folder with this index.js:


but when we refresh the site (webinspector is opened during that) then index.js file is not in "Extra Scripts" but in main resources:
image.png 
image.png

If we use direct https://player-stable-endpoint.prd.mp.itv.com/ctv/1.14.5/index.js as a source of the script (so without redirection from https://player-stable-endpoint.prd.mp.itv.com/ctv/virginmedia):

<html>
<head>
<script src="https://player-stable-endpoint.prd.mp.itv.com/ctv/1.14.5/index.js"></script>
<body>
</body>
</html>

the index.js file will be always in main branch of the resource tree( "Extra Scripts" folder will not be created at all)
Comment 1 Przemyslaw Gorszkowski 2024-03-28 23:59:16 PDT
Created attachment 470661 [details]
Screenshot with index.js file not in "Extra Scripts" folder
Comment 2 Radar WebKit Bug Importer 2024-04-04 23:58:14 PDT
<rdar://problem/125952957>