Bug 159066 - sourceMappingURL tries to load relative to document instead of script (Safari 10 / macOS 10.12)
Summary: sourceMappingURL tries to load relative to document instead of script (Safari...
Status: RESOLVED DUPLICATE of bug 157650
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Other
Hardware: Mac Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-23 12:08 PDT by eelco
Modified: 2016-06-23 13:02 PDT (History)
6 users (show)

See Also:


Attachments
Example to reproduce the bug (6.17 KB, application/zip)
2016-06-23 12:08 PDT, eelco
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description eelco 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.
Comment 1 Radar WebKit Bug Importer 2016-06-23 12:08:28 PDT
<rdar://problem/26979237>
Comment 2 Joseph Pecoraro 2016-06-23 13:01:39 PDT
This is behaving as expected in the latest Safari Technology Preview and trunk (r202384) for me.
Comment 3 Joseph Pecoraro 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 ***