<?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>275709</bug_id>
          
          <creation_ts>2024-06-20 14:41:21 -0700</creation_ts>
          <short_desc>REGRESSION(280109@main): [macOS iOS Debug wk2] ASSERTION FAILED: Completion handler should always be called</short_desc>
          <delta_ts>2024-07-16 13:53:34 -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>New Bugs</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=275546</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="Anfernee Viduya">aviduya</reporter>
          <assigned_to name="Charlie Wolfe">charliew</assigned_to>
          <cc>achristensen</cc>
    
    <cc>rbuis</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>2042309</commentid>
    <comment_count>0</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-06-20 14:41:21 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-form.html 

The test above is constantly seeing a debug assertion or crash on macOS Ventura and above on the debug platform, with iOS 17. 

HISTORY: 
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fnavigation-api%2Fnavigate-event%2Fnavigate-form.html&amp;platform=ios&amp;platform=mac&amp;style=debug&amp;style=release&amp;flavor=wk2

ASSERTION TEXT:
ASSERTION FAILED: Completion handler should always be called
!m_function
/Volumes/Data/worker/Apple-Sonoma-Debug-Build/build/WebKitBuild/Debug/usr/local/include/wtf/CompletionHandler.h(66) : WTF::CompletionHandler&lt;void ()&gt;::~CompletionHandler()
1   0x3556b13d4 WTF::CompletionHandler&lt;void ()&gt;::~CompletionHandler()
2   0x355695d80 WTF::CompletionHandler&lt;void ()&gt;::~CompletionHandler()
3   0x35a4ed7d8 WebCore::FrameLoader::loadFrameRequest(WebCore::FrameLoadRequest&amp;&amp;, WebCore::Event*, WTF::RefPtr&lt;WebCore::FormState, WTF::RawPtrTraits&lt;WebCore::FormState&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::FormState&gt;&gt;&amp;&amp;, std::__1::optional&lt;WebCore::PrivateClickMeasurement&gt;&amp;&amp;)
4   0x35a5847d4 WebCore::ScheduledFormSubmission::fire(WebCore::Frame&amp;)
5   0x35a582f14 WebCore::NavigationScheduler::timerFired()
6   0x35a593d6c decltype(*std::declval&lt;WebCore::NavigationScheduler*&amp;&gt;().*std::declval&lt;void (WebCore::NavigationScheduler::*&amp;)()&gt;()()) std::__1::__invoke[abi:sn170006]&lt;void (WebCore::NavigationScheduler::*&amp;)(), WebCore::NavigationScheduler*&amp;, void&gt;(void (WebCore::NavigationScheduler::*&amp;)(), WebCore::NavigationScheduler*&amp;)
7   0x35a593cec std::__1::__bind_return&lt;void (WebCore::NavigationScheduler::*)(), std::__1::tuple&lt;WebCore::NavigationScheduler*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::NavigationScheduler::*)(), std::__1::tuple&lt;WebCore::NavigationScheduler*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__apply_functor[abi:sn170006]&lt;void (WebCore::NavigationScheduler::*)(), std::__1::tuple&lt;WebCore::NavigationScheduler*&gt;, 0ul, std::__1::tuple&lt;&gt;&gt;(void (WebCore::NavigationScheduler::*&amp;)(), std::__1::tuple&lt;WebCore::NavigationScheduler*&gt;&amp;, std::__1::__tuple_indices&lt;0ul&gt;, std::__1::tuple&lt;&gt;&amp;&amp;)
8   0x35a593ca4 std::__1::__bind_return&lt;void (WebCore::NavigationScheduler::*)(), std::__1::tuple&lt;WebCore::NavigationScheduler*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::NavigationScheduler::*)(), std::__1::tuple&lt;WebCore::NavigationScheduler*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__bind&lt;void (WebCore::NavigationScheduler::*&amp;)(), WebCore::NavigationScheduler*&gt;::operator()[abi:sn170006]&lt;&gt;()
9   0x35a593c48 WTF::Detail::CallableWrapper&lt;std::__1::__bind&lt;void (WebCore::NavigationScheduler::*&amp;)(), WebCore::NavigationScheduler*&gt;, void&gt;::call()
10  0x358ca3c00 WTF::Function&lt;void ()&gt;::operator()() const
11  0x35563b944 WebCore::Timer::fired()
12  0x35ab58910 WebCore::ThreadTimers::sharedTimerFiredInternal()
13  0x35ab62e7c WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
14  0x35ab62e28 WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call()
15  0x358ca3c00 WTF::Function&lt;void ()&gt;::operator()() const
16  0x35ab0019c WebCore::MainThreadSharedTimer::fired()
17  0x35ac093b8 WebCore::timerFired(__CFRunLoopTimer*, void*)
18  0x1858665b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
19  0x18586625c __CFRunLoopDoTimer
20  0x185865d94 __CFRunLoopDoTimers
21  0x1858491cc __CFRunLoopRun
22  0x185848434 CFRunLoopRunSpecific
23  0x18697ca88 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
24  0x1869f66c4 -[NSRunLoop(NSRunLoop) run]
25  0x185483468 _xpc_objc_main
26  0x185492e58 _xpc_main
27  0x185483014 _xpc_copy_xpcservice_dictionary
28  0x13f10694c WebKit::XPCServiceMain(int, char const**)
29  0x1419e87e4 WKXPCServiceMain
30  0x100693f90 main
31  0x1853e20e0 start
com.apple.WebKit.WebContent.Development terminated (pid 54920) for reason: crash
LEAK: 1 WebProcessPool
LEAK: 1 WebPageProxy 

CRASH LOG URL: 
https://build.webkit.org/results/Apple-Sonoma-Debug-AppleSilicon-WK2-Tests/280207@main%20(3132)/imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-form-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042310</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-06-20 14:43:01 -0700</bug_when>
    <thetext>&lt;rdar://problem/130233442&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042329</commentid>
    <comment_count>2</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-06-20 15:38:39 -0700</bug_when>
    <thetext>Was able to reproduce the assertion on macOS Sonoma debug ToT running the test as follows: 

run-webkit-test imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-form.html 

I was also able to validate a regression point, this test crashes / asserts at 280109@main but not 280108@main therefor 280109@main regressed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042338</commentid>
    <comment_count>3</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-06-20 16:12:43 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30025</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042339</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-06-20 16:22:17 -0700</bug_when>
    <thetext>Test gardening commit 280230@main (ffd8bec936bd): &lt;https://commits.webkit.org/280230@main&gt;

Reviewed commits have been landed. Closing PR #30025 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042340</commentid>
    <comment_count>5</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-06-20 16:31:10 -0700</bug_when>
    <thetext>(In reply to EWS from comment #4)
&gt; Test gardening commit 280230@main (ffd8bec936bd):
&gt; &lt;https://commits.webkit.org/280230@main&gt;
&gt; 
&gt; Reviewed commits have been landed. Closing PR #30025 and removing active
&gt; labels.

I have opted to skip this test on debug for macOS and iOS with the above commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042840</commentid>
    <comment_count>6</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2024-06-24 16:43:39 -0700</bug_when>
    <thetext>Looks like this also affects imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-form-userInitiated.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042875</commentid>
    <comment_count>7</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2024-06-24 22:27:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30137</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042907</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-06-25 02:04:46 -0700</bug_when>
    <thetext>Committed 280327@main (f2201a018506): &lt;https://commits.webkit.org/280327@main&gt;

Reviewed commits have been landed. Closing PR #30137 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2046562</commentid>
    <comment_count>9</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-07-16 13:53:34 -0700</bug_when>
    <thetext>*** Bug 275822 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>