<?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>293319</bug_id>
          
          <creation_ts>2025-05-20 14:36:57 -0700</creation_ts>
          <short_desc>AbortController.signal.reason is lost after garbage collection</short_desc>
          <delta_ts>2025-06-02 08:50:40 -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>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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>pfg</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2118505</commentid>
    <comment_count>0</comment_count>
    <who name="">pfg</who>
    <bug_when>2025-05-20 14:36:57 -0700</bug_when>
    <thetext>Reproduction: Run the code in Safari, and Collect garbage before the setTimeout resolves

(() =&gt; {
    const controller = new AbortController();
    controller.abort(new Error(&quot;should print this&quot;));

    // Press &apos;collect garbage&apos; before this setTimeout resolves
    setTimeout(() =&gt; {
        console.log(controller.signal.reason);
    }, 1000);
})()

Actual results:

    &apos;undefined&apos; is printed after one second

Expected results:

    The error &quot;should print this&quot; should be printed after one second

Build date and hardware:

    Safari Technology Preview Release 219 (Safari 18.4, WebKit 20622.1.12) on M3 Max macOS 15.3 (24D60)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119948</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-05-27 14:37:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/152111446&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120089</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2025-05-28 01:42:20 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/45986</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121124</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-06-02 08:50:37 -0700</bug_when>
    <thetext>Committed 295688@main (f1292b56a628): &lt;https://commits.webkit.org/295688@main&gt;

Reviewed commits have been landed. Closing PR #45986 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>