Bug 213873 - Web Inspector: Source map locations in minified files are incorrect
Summary: Web Inspector: Source map locations in minified files are incorrect
Status: RESOLVED DUPLICATE of bug 235607
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 13
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: https://evanw.github.io/browser-sourc...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-01 23:48 PDT by evan.exe
Modified: 2022-03-24 17:34 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description evan.exe 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.
Comment 1 evan.exe 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.
Comment 2 Radar WebKit Bug Importer 2020-07-02 17:57:44 PDT
<rdar://problem/65058326>
Comment 3 Yusuke Suzuki 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 ***