WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
275151
Non-empty inline scripts cause all subsequent scripts to load twice
https://bugs.webkit.org/show_bug.cgi?id=275151
Summary
Non-empty inline scripts cause all subsequent scripts to load twice
Alexander Shvets
Reported
2024-06-05 04:37:40 PDT
Created
attachment 471587
[details]
test specimen # Steps to reproduce: 1. Host the attached test.html on a web server so that the scripts could be loaded. 2. Open test.html without a cache. 3. In the network tab you'll see that whatever2.js is loaded two times, instead of 1. In fact, any scripts that follow the inline script tag will be requested twice (make sure to do the clean reload, because on the normal reload it behaves as expected). # Expected: Scripts whatever1.js and whatever2.js loaded just once each. # The test specimen's contents: <!DOCTYPE html> <html lang="en"> <head> <title>Test</title> <script src="whatever1.js"></script> <script>/**/</script> <script src="whatever2.js"></script> </head> <body> </body> </html>
Attachments
test specimen
(203 bytes, text/html)
2024-06-05 04:37 PDT
,
Alexander Shvets
no flags
Details
screenshot of the network tab
(79.07 KB, image/png)
2024-06-05 04:38 PDT
,
Alexander Shvets
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexander Shvets
Comment 1
2024-06-05 04:38:44 PDT
Created
attachment 471588
[details]
screenshot of the network tab
Alexey Proskuryakov
Comment 2
2024-06-05 14:55:08 PDT
Probably a preload bug?
Radar WebKit Bug Importer
Comment 3
2024-06-12 04:38:13 PDT
<
rdar://problem/129670660
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug