<?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>306876</bug_id>
          
          <creation_ts>2026-02-03 07:46:31 -0800</creation_ts>
          <short_desc>Tweak API calls into Web Back Forward List to respect Swift calling conventions</short_desc>
          <delta_ts>2026-02-05 04:37:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Process Model</component>
          <version>WebKit Nightly Build</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>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>305483</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>adrian_taylor</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>nham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2177592</commentid>
    <comment_count>0</comment_count>
    <who name="">adrian_taylor</who>
    <bug_when>2026-02-03 07:46:31 -0800</bug_when>
    <thetext>We&apos;re building a Swift version of the Web Back Forward List code. Various other parts of WebKit code make method calls on it. Some of those will need tweaks to deal with the slightly different calling conventions that Swift functions have.

Nearly all of these changes are because we can&apos;t store a Swift object within a Ref&lt;T&gt; or a RefPtr&lt;T&gt; in C++. We considered making that possible, but given that Swift reference types are automatically reference-counted in C++, it was felt to be too confusing in the long term - even if it had largely obviated the need for these changes in the short term.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177593</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-03 07:46:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/169533837&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177601</commentid>
    <comment_count>2</comment_count>
    <who name="">adrian_taylor</who>
    <bug_when>2026-02-03 08:13:37 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57787</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178342</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-05 04:37:52 -0800</bug_when>
    <thetext>Committed 306857@main (5c8edbf5a479): &lt;https://commits.webkit.org/306857@main&gt;

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

    </bug>

</bugzilla>