Bug 213873

Summary: Web Inspector: Source map locations in minified files are incorrect
Product: WebKit Reporter: evan.exe
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: All   
OS: All   
URL: https://evanw.github.io/browser-source-map-bugs/#safari

evan.exe
Reported 2020-07-01 23:48:22 PDT
Repro: 1. Visit https://evanw.github.io/browser-source-map-bugs/#safari 2. Open the browser console Expected: Both the unminified and minified stack traces should match. The first stack frame should be "other.ts" on line 2 and the second stack frame should be "entry.ts" on line 6. Observed: The unminified stack trace is correct but the minified stack trace is incorrect. In the minified stack trace, both frames are "entry.ts" on line 7. Apologies if this bug has already been fixed in WebKit Nightly. I can't test it because WebKit Nightly isn't supported on macOS Mojave 10.14.
Attachments
evan.exe
Comment 1 2020-07-01 23:49:32 PDT
I believe these locations to be correct because these are the locations reported by Mozilla's source map library: https://github.com/mozilla/source-map. See https://github.com/evanw/browser-source-map-bugs/blob/gh-pages/verify.js for the verification script.
Radar WebKit Bug Importer
Comment 2 2020-07-02 17:57:44 PDT
Yusuke Suzuki
Comment 3 2022-03-24 17:34:33 PDT
Thanks! Yeah, this is fixed in bug 235607 *** This bug has been marked as a duplicate of bug 235607 ***
Note You need to log in before you can comment on or make changes to this bug.