<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>213873</bug_id>
          
          <creation_ts>2020-07-01 23:48:22 -0700</creation_ts>
          <short_desc>Web Inspector: Source map locations in minified files are incorrect</short_desc>
          <delta_ts>2022-03-24 17:34:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>Safari 13</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>235607</dup_id>
          
          <bug_file_loc>https://evanw.github.io/browser-source-map-bugs/#safari</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>evan.exe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1668164</commentid>
    <comment_count>0</comment_count>
    <who name="">evan.exe</who>
    <bug_when>2020-07-01 23:48:22 -0700</bug_when>
    <thetext>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 &quot;other.ts&quot; on line 2 and the second stack frame should be &quot;entry.ts&quot; 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 &quot;entry.ts&quot; on line 7.

Apologies if this bug has already been fixed in WebKit Nightly. I can&apos;t test it because WebKit Nightly isn&apos;t supported on macOS Mojave 10.14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668165</commentid>
    <comment_count>1</comment_count>
    <who name="">evan.exe</who>
    <bug_when>2020-07-01 23:49:32 -0700</bug_when>
    <thetext>I believe these locations to be correct because these are the locations reported by Mozilla&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668437</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-07-02 17:57:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/65058326&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1854961</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-03-24 17:34:33 -0700</bug_when>
    <thetext>Thanks! Yeah, this is fixed in bug 235607

*** This bug has been marked as a duplicate of bug 235607 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>