<?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>285446</bug_id>
          
          <creation_ts>2025-01-06 10:49:27 -0800</creation_ts>
          <short_desc>Commit provisional history items that are not cancelled during policy decision</short_desc>
          <delta_ts>2025-01-08 13:23:39 -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>History</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=285579</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=285627</see_also>
          <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 name="Charlie Wolfe">charliew</reporter>
          <assigned_to name="Charlie Wolfe">charliew</assigned_to>
          <cc>fujii</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2085109</commentid>
    <comment_count>0</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2025-01-06 10:49:27 -0800</bug_when>
    <thetext>In 285421@main, I made the UI process aware of when a web process starts a back/forward navigation but has not yet committed it. However, we did not always notify the UI process when the item was committed. If we fail to notify the UI process, it can result in a state where the current index becomes stale and the provisional index is cleared, leading to a possible out-of-bounds crash when using the current index.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085110</commentid>
    <comment_count>1</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2025-01-06 10:49:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/142028791&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085111</commentid>
    <comment_count>2</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2025-01-06 10:50:20 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/38577</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085373</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-07 03:18:51 -0800</bug_when>
    <thetext>Committed 288518@main (f2981ff7b160): &lt;https://commits.webkit.org/288518@main&gt;

Reviewed commits have been landed. Closing PR #38577 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085711</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-01-07 22:40:04 -0800</bug_when>
    <thetext>Regressed: 
  Bug 285579 – REGRESSION(288518@main): http/tests/navigation/forward-and-cancel.html is crashing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>