<?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>278318</bug_id>
          
          <creation_ts>2024-08-19 09:17:59 -0700</creation_ts>
          <short_desc>[macOS Debug] ASSERTION FAILED: m_wrapper on media/video-playsinline.html, also flaky failure in Release</short_desc>
          <delta_ts>2024-09-30 19:06:08 -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>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=278239</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=280646</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="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darbinyan</cc>
    
    <cc>fujii</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2053737</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-08-19 09:17:59 -0700</bug_when>
    <thetext>[mac wk2] media/video-playsinline.html is a flaky failure.

Test history:  &lt;https://results.webkit.org/?suite=layout-tests&amp;test=media/video-playsinline.html&gt;

Flaky failure is seen most often on Mac WK2 Release builds:

--- /Volumes/Data/worker/Apple-Ventura-Release-WK2-Tests/build/layout-test-results/media/video-timeupdate-during-playback-expected.txt
+++ /Volumes/Data/worker/Apple-Ventura-Release-WK2-Tests/build/layout-test-results/media/video-timeupdate-during-playback-actual.txt
@@ -15,5 +15,6 @@
 RUN(video.pause())
 EVENT(pause)
 
+&apos;timeupdate&apos; events posted after pausing FAIL
 END OF TEST
 

But the test also crashes flakily on Mac WK2 Debug as seen on this EWS run:

PR:  &lt;https://github.com/WebKit/WebKit/pull/32362&gt;

Test run:  &lt;https://ews-build.webkit.org/#/builders/62/builds/11945&gt;

Test results #1:  &lt;https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sonoma-Debug-WK2-Tests-EWS/6c84dd0a-11945/results.html&gt;
Test results #2:  &lt;https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sonoma-Debug-WK2-Tests-EWS/6c84dd0a-11945-rerun/results.html&gt;

ASSERTION FAILED: m_wrapper
/Volumes/Data/worker/macOS-Sonoma-Debug-Build-EWS/build/Source/WebCore/bindings/js/JSEventListener.h(164) : JSC::JSObject *WebCore::JSEventListener::ensureJSFunction(ScriptExecutionContext &amp;) const
1   0x32f389cbc WebCore::JSEventListener::ensureJSFunction(WebCore::ScriptExecutionContext&amp;) const
2   0x32f3fb510 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&amp;, WebCore::Event&amp;)
3   0x32ff80870 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&amp;, WTF::Vector&lt;WTF::RefPtr&lt;WebCore::RegisteredEventListener, WTF::RawPtrTraits&lt;WebCore::RegisteredEventListener&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::RegisteredEventListener&gt;&gt;, 1ul, WTF::CrashOnOverflow, 2ul, WTF::FastMalloc&gt;, WebCore::EventTarget::EventInvokePhase)
4   0x32ff80240 WebCore::EventTarget::fireEventListeners(WebCore::Event&amp;, WebCore::EventTarget::EventInvokePhase)
5   0x32ff6b5e4 WebCore::EventContext::handleLocalEvents(WebCore::Event&amp;, WebCore::EventTarget::EventInvokePhase) const
6   0x32ff6c8f8 WebCore::dispatchEventInDOM(WebCore::Event&amp;, WebCore::EventPath const&amp;)
7   0x32ff6c0e8 WebCore::EventDispatcher::dispatchEvent(WebCore::Node&amp;, WebCore::Event&amp;)
8   0x330010f08 WebCore::Node::dispatchEvent(WebCore::Event&amp;)
9   0x3304583d8 WebCore::HTMLMediaElement::dispatchEvent(WebCore::Event&amp;)
10  0x32fd47e30 WebCore::ActiveDOMObject::queueCancellableTaskToDispatchEventInternal(WebCore::EventTarget&amp;, WebCore::TaskSource, WTF::TaskCancellationGroup&amp;, WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_6::operator()() const
11  0x32fd47d54 WTF::Detail::CallableWrapper&lt;WebCore::ActiveDOMObject::queueCancellableTaskToDispatchEventInternal(WebCore::EventTarget&amp;, WebCore::TaskSource, WTF::TaskCancellationGroup&amp;, WTF::Ref&lt;WebCore::Event, WTF::RawPtrTraits&lt;WebCore::Event&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Event&gt;&gt;&amp;&amp;)::$_6, void&gt;::call()
12  0x32baf63f8 WTF::Function&lt;void ()&gt;::operator()() const
13  0x32f327a88 WTF::CancellableTask::operator()()
14  0x32f3278d0 WTF::Detail::CallableWrapper&lt;WTF::CancellableTask, void&gt;::call()
15  0x32baf63f8 WTF::Function&lt;void ()&gt;::operator()() const
16  0x32fd4384c WebCore::ActiveDOMObjectEventDispatchTask::execute()
17  0x32ff78a30 WebCore::EventLoop::run(std::__1::optional&lt;WTF::ApproximateTime&gt;)
18  0x33014e7b4 WebCore::WindowEventLoop::didReachTimeToRun()
19  0x330152430 decltype(*std::declval&lt;WebCore::WindowEventLoop*&amp;&gt;().*std::declval&lt;void (WebCore::WindowEventLoop::*&amp;)()&gt;()()) std::__1::__invoke[abi:sn170006]&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;, void&gt;(void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;)
20  0x3301523b0 std::__1::__bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__apply_functor[abi:sn170006]&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, 0ul, std::__1::tuple&lt;&gt;&gt;(void (WebCore::WindowEventLoop::*&amp;)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;&amp;, std::__1::__tuple_indices&lt;0ul&gt;, std::__1::tuple&lt;&gt;&amp;&amp;)
21  0x330152368 std::__1::__bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::WindowEventLoop::*)(), std::__1::tuple&lt;WebCore::WindowEventLoop*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__bind&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&gt;::operator()[abi:sn170006]&lt;&gt;()
22  0x33015230c WTF::Detail::CallableWrapper&lt;std::__1::__bind&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&gt;, void&gt;::call()
23  0x32baf63f8 WTF::Function&lt;void ()&gt;::operator()() const
24  0x32bc3d354 WebCore::Timer::fired()
25  0x331294fa8 WebCore::ThreadTimers::sharedTimerFiredInternal()
26  0x33129f574 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
27  0x33129f520 WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call()
28  0x32baf63f8 WTF::Function&lt;void ()&gt;::operator()() const
29  0x33123c0f4 WebCore::MainThreadSharedTimer::fired()
30  0x3313450ac WebCore::timerFired(__CFRunLoopTimer*, void*)
31  0x197d0a5b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
com.apple.WebKit.WebContent.Development terminated (pid 8502) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053738</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-19 09:18:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/134261773&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053741</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-08-19 09:20:45 -0700</bug_when>
    <thetext>Test expectations as of 281902@main (Tue, Aug 06):

$ grep -r media/video-playsinline.html LayoutTests/TestExpectations LayoutTests/platform
LayoutTests/platform/mac-site-isolation/TestExpectations:media/video-playsinline.html [ Skip ]
LayoutTests/platform/glib/TestExpectations:webkit.org/b/261024 media/video-playsinline.html [ Failure Pass ]
LayoutTests/platform/ios/TestExpectations:media/video-playsinline.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054238</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-20 15:55:59 -0700</bug_when>
    <thetext>Test gardening commit 282525@main (50d318d04432): &lt;https://commits.webkit.org/282525@main&gt;

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

    </bug>

</bugzilla>