<?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>174702</bug_id>
          
          <creation_ts>2017-07-20 19:10:17 -0700</creation_ts>
          <short_desc>DOMException should have same properties as Error</short_desc>
          <delta_ts>2022-09-02 16:11:13 -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>Bindings</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>174216</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>d</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1330889</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-07-20 19:10:17 -0700</bug_when>
    <thetext>DOMException should have same properties as Error, e.g. &quot;stack&quot; property, as per:
https://heycam.github.io/webidl/#es-DOMException-specialness

&quot;&quot;&quot;
If an implementation gives native Error objects special powers or nonstandard properties (such as a stack property), it should also expose those on DOMException instances.
&quot;&quot;&quot;

This is covered by the last check of:
http://w3c-test.org/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895919</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-02 16:11:02 -0700</bug_when>
    <thetext>Safari Technology Preview 152 fail this test from the w3c-test on Comment 0:

If the implementation has a stack property on normal errors, it also does on DOMExceptions

Chrome Canary 107 also fail this test and only Firefox Nightly 107 pass this:

_____

Chromium / Blink IDL File - https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/dom_exception.idl;l=1?q=dom_Exception.idl&amp;sq=

Firefox Nightly 106 - https://searchfox.org/mozilla-central/source/dom/webidl/DOMException.webidl

Webkit GitHub - https://github.com/WebKit/WebKit/blob/ec6c52d11104000e83be471c46a1d087b334ac59/Source/WebCore/dom/DOMException.idl

_____

Just wanted to share updated results. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>