<?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>246010</bug_id>
          
          <creation_ts>2022-10-04 01:37:43 -0700</creation_ts>
          <short_desc>@webkit-masked-url: (//hidden/) in stack trace</short_desc>
          <delta_ts>2025-06-22 14:37:36 -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>JavaScriptCore</component>
          <version>Safari 16</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=242278</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=238576</see_also>
          <bug_file_loc>https://github.com/getsentry/sentry-javascript/discussions/5875</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Serhii">shramko.web</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>edgar</cc>
    
    <cc>shramko.web</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1903070</commentid>
    <comment_count>0</comment_count>
    <who name="Serhii">shramko.web</who>
    <bug_when>2022-10-04 01:37:43 -0700</bug_when>
    <thetext>Hello. I began to see such errors in my project:

//hidden/ in y@webkit-masked-url: at line 2:2930760
//hidden/ in fromAny@webkit-masked-url: at line 2:2931890
//hidden/ in _handleResponsePromise@webkit-masked-url: at line 2:1144366
//hidden/ in _handleDispatchResponse@webkit-masked-url: at line 2:1144141
//hidden/ in _handleMessage@webkit-masked-url: at line 2:1143837
//hidden/ in @webkit-masked-url: at line 2:1143638
//hidden/ in emit@webkit-masked-url: at line 2339:17
//hidden/ in @webkit-masked-url: at line 2138:26</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903071</commentid>
    <comment_count>1</comment_count>
    <who name="Serhii">shramko.web</who>
    <bug_when>2022-10-04 01:51:09 -0700</bug_when>
    <thetext>Mac OS X Version:10.15.7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903072</commentid>
    <comment_count>2</comment_count>
    <who name="Serhii">shramko.web</who>
    <bug_when>2022-10-04 01:55:15 -0700</bug_when>
    <thetext>Noticed a bug in the Sentry. Looks like a bug in Safari itself, not my code.

According to my logs, the bug is only in Mac OS X Version:10.15.7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903199</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-10-04 11:54:15 -0700</bug_when>
    <thetext>I think that this may be expected behavior (masking extension code), but CC&apos;ing some folks to respond authoritatively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903302</commentid>
    <comment_count>4</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2022-10-04 18:21:18 -0700</bug_when>
    <thetext>YEs, if this is from a Safari Extension, Error.stack will mask the URLs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904389</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-10-09 13:58:24 -0700</bug_when>
    <thetext>Resolving per the above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125103</commentid>
    <comment_count>6</comment_count>
    <who name="">edgar</who>
    <bug_when>2025-06-22 14:37:36 -0700</bug_when>
    <thetext>I&apos;m running into an issue here. I&apos;m a developer of a Safari web extension and I use Sentry for error logging. As a result of this url masking feature all my stack traces in Sentry show up like this:

```
ReferenceError: Cannot access uninitialized variable.
  at ? (webkit-masked-url://hidden/:14677:28)
  at ? (webkit-masked-url://hidden/:16307:3)
  at global code(webkit-masked-url://hidden/:16309:12)
```

This is completely unhelpful. I can&apos;t see which file encountered an error. It also means that sourcemaps can&apos;t be associated with the stacktrace.

Is there a workaround for extension developers who actually want to see the url?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>