Bug 159066

Summary: sourceMappingURL tries to load relative to document instead of script (Safari 10 / macOS 10.12)
Product: WebKit Reporter: eelco
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bburg, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Mac   
OS: Other   
Attachments:
Description Flags
Example to reproduce the bug none

eelco
Reported 2016-06-23 12:08:01 PDT
Created attachment 281925 [details] Example to reproduce the bug Safari 10 / WebKit on macOS 10.12 tries to load the source map from an incorrect location. To reproduce: - Unzip the attachment. - Host it by executing 'python -m SimpleHTTPServer 1234' - Go to http://0.0.0.0:1234 - Open the Web Inspector Console (option-cmd-C) - Look at the errors Observed: - A 404 error caused by the Inspector trying to load the source map from /script.js.map (should be /scripts/script.js.map) Expected: - No errors (only from trying to load favicon.ico, maybe) Notes: This only happens with Safari 10 / macOS 10.12. Because those are not listed in Version / OS, I selected ‘Other’. I also tested with Safari 9 and STP on OS X 10.11.
Attachments
Example to reproduce the bug (6.17 KB, application/zip)
2016-06-23 12:08 PDT, eelco
no flags
Radar WebKit Bug Importer
Comment 1 2016-06-23 12:08:28 PDT
Joseph Pecoraro
Comment 2 2016-06-23 13:01:39 PDT
This is behaving as expected in the latest Safari Technology Preview and trunk (r202384) for me.
Joseph Pecoraro
Comment 3 2016-06-23 13:02:25 PDT
I believe this is a duplicate of: bug 157650 02c2fe3 REGRESSION: Web Inspector: Fails to load sourceMappingURL with relative URL https://bugs.webkit.org/show_bug.cgi?id=157650 <rdar://problem/26133763> Which indeed missed the cutoff for the first macOS Seed. *** This bug has been marked as a duplicate of bug 157650 ***
Note You need to log in before you can comment on or make changes to this bug.