<?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>278500</bug_id>
          
          <creation_ts>2024-08-21 16:08:10 -0700</creation_ts>
          <short_desc>REGRESSION (282564@main): [ macOS iOS wk2 debug arm64 ] imported/w3c/web-platform-tests/navigation-api/navigate-event/replaceState-inside-back-handler.html is a constant crash with a  assertion failure.</short_desc>
          <delta_ts>2024-08-28 14:17:00 -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>WebCore JavaScript</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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 name="Anfernee Viduya">aviduya</reporter>
          <assigned_to name="Patrick Griffis">pgriffis</assigned_to>
          <cc>achristensen</cc>
    
    <cc>pgriffis</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2054556</commentid>
    <comment_count>0</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-08-21 16:08:10 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/navigation-api/navigate-event/replaceState-inside-back-handler.html 
is a constant crash producing an assertion failure.

HISTORY: 
https://results.webkit.org/?platform=mac&amp;platform=ios&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fnavigation-api%2Fnavigate-event%2FreplaceState-inside-back-handler.html 

LOG: 
1   0x35b3ad4d8 WebCore::DOMPromise::whenPromiseIsSettled(WebCore::JSDOMGlobalObject*, JSC::JSObject*, WTF::Function&lt;void ()&gt;&amp;&amp;)
2   0x35b3ad01c WebCore::DOMPromise::whenSettled(std::__1::function&lt;void ()&gt;&amp;&amp;)
3   0x35cfa8a68 WebCore::waitForAllPromises(WTF::Vector&lt;WTF::RefPtr&lt;WebCore::DOMPromise, WTF::RawPtrTraits&lt;WebCore::DOMPromise&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::DOMPromise&gt;&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WTF::Function&lt;void ()&gt;&amp;&amp;, WTF::Function&lt;void (JSC::JSValue)&gt;&amp;&amp;)
4   0x35cfa7dd8 WebCore::Navigation::innerDispatchNavigateEvent(WebCore::NavigationNavigationType, WTF::Ref&lt;WebCore::NavigationDestination, WTF::RawPtrTraits&lt;WebCore::NavigationDestination&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::NavigationDestination&gt;&gt;&amp;&amp;, WTF::String const&amp;, WebCore::FormState*, WebCore::SerializedScriptValue*)
5   0x35cfa9014 WebCore::Navigation::dispatchPushReplaceReloadNavigateEvent(WTF::URL const&amp;, WebCore::NavigationNavigationType, bool, WebCore::FormState*, WebCore::SerializedScriptValue*)

LINK: 
https://build.webkit.org/results/Apple-Sonoma-Debug-AppleSilicon-WK2-Tests/282576@main%20(3805)/imported/w3c/web-platform-tests/navigation-api/navigate-event/replaceState-inside-back-handler-crash-log.txt

DESCRIPTION: 
In 282564@main changes were made in Navigation. I tried to bisect the regression but it seems that 282564@main had a build failure. In 282563@main the crash does not occur. 

REPRODUCIBILITY: 
I was able to reproduce the constant crash on ToT using command 
run-webkit-test imported/w3c/web-platform-tests/navigation-api/navigate-event/replaceState-inside-back-handler.html --debug --iterations 10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054557</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-21 16:08:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/134452443&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054558</commentid>
    <comment_count>2</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-08-21 16:14:24 -0700</bug_when>
    <thetext>ASSERTION FAILED: !scope.exception() || vm.hasPendingTerminationException()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054570</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-21 17:03:56 -0700</bug_when>
    <thetext>Test gardening commit 282588@main (975b17dd3d6f): &lt;https://commits.webkit.org/282588@main&gt;

Reviewed commits have been landed. Closing PR #32566 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054595</commentid>
    <comment_count>4</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-08-21 18:59:33 -0700</bug_when>
    <thetext>With the above commit it was decided to skip the test on affected platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054730</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2024-08-22 09:42:11 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32596</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054744</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-22 10:53:53 -0700</bug_when>
    <thetext>Committed 282623@main (df546f0d2c4d): &lt;https://commits.webkit.org/282623@main&gt;

Reviewed commits have been landed. Closing PR #32596 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054846</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-08-22 16:55:15 -0700</bug_when>
    <thetext>This fix didn&apos;t unskip tests that were skipped in 282588@main, this still needs to be done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054849</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-08-22 17:08:59 -0700</bug_when>
    <thetext>My mistake, I somehow overlooked that the expectations were actually removed. Please ignore the above comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056072</commentid>
    <comment_count>9</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-08-28 14:17:00 -0700</bug_when>
    <thetext>The fix was 282623@main. It reverted the commit that regressed the test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>