<?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>277121</bug_id>
          
          <creation_ts>2024-07-25 21:46:05 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext() in WebCore::HTMLMediaElement::isSuspended() for fast/events/event-input-contentEditable.html</short_desc>
          <delta_ts>2024-08-01 21:47:14 -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=271727</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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2048521</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-25 21:46:05 -0700</bug_when>
    <thetext>https://build.webkit.org/results/Apple-Ventura-Debug-AppleSilicon-WK1-Tests/279349@main%20(6381)/fast/events/event-input-contentEditable-crash-log.txt

&gt; ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext()
&gt; /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebCore/html/HTMLMediaElement.cpp(8719) : virtual bool WebCore::HTMLMediaElement::isSuspended() const


History:
  https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fevents%2Fevent-input-contentEditable.html&amp;style=debug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048522</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-25 21:47:13 -0700</bug_when>
    <thetext>https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/280834@main%20(13834)/fast/events/event-input-contentEditable-crash-log.txt

 ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext()
 /app/webkit/Source/WebCore/html/HTMLMediaElement.cpp(8775) : virtual bool WebCore::HTMLMediaElement::isSuspended() const
 1   0x7f256990e387 WebCore::HTMLMediaElement::isSuspended() const
 2   0x7f256a53e11d WebCore::PlatformMediaSession::isSuspended() const
 3   0x7f25699f5b48 WebCore::MediaElementSession::preferredBufferingPolicy() const
 4   0x7f25699f44af WebCore::MediaElementSession::updateClientDataBuffering()
 5   0x7f25699f43d7 WebCore::MediaElementSession::clientDataBufferingTimerFired()
 6   0x7f2569a0c05c void std::__invoke_impl&lt;void, void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;&gt;(std::__invoke_memfun_deref, void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;)
 7   0x7f2569a0bfc7 std::__invoke_result&lt;void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;&gt;::type std::__invoke&lt;void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;&gt;(void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;)
 8   0x7f2569a0bf3d void std::_Bind&lt;void (WebCore::MediaElementSession::*(WebCore::MediaElementSession*))()&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;)
 9   0x7f2569a0becf void std::_Bind&lt;void (WebCore::MediaElementSession::*(WebCore::MediaElementSession*))()&gt;::operator()&lt;, void&gt;()
 10  0x7f2569a0be98 WTF::Detail::CallableWrapper&lt;std::_Bind&lt;void (WebCore::MediaElementSession::*(WebCore::MediaElementSession*))()&gt;, void&gt;::call()
 11  0x7f2564de9c22 WTF::Function&lt;void ()&gt;::operator()() const
 12  0x7f2564ed319c WebCore::Timer::fired()
 13  0x7f256a4fa620 WebCore::ThreadTimers::sharedTimerFiredInternal()
 14  0x7f256a4f9ee9 operator()
 15  0x7f256a50422e call
 16  0x7f2564de9c22 WTF::Function&lt;void ()&gt;::operator()() const
 17  0x7f256a4a2a49 WebCore::MainThreadSharedTimer::fired()
 18  0x7f256a4acc5a void std::__invoke_impl&lt;void, void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;&gt;(std::__invoke_memfun_deref, void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;)
 19  0x7f256a4acbd3 std::__invoke_result&lt;void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;&gt;::type std::__invoke&lt;void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;&gt;(void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;)
 20  0x7f256a4acb49 void std::_Bind&lt;void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;)
 21  0x7f256a4acadb void std::_Bind&lt;void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()&gt;::operator()&lt;, void&gt;()
 22  0x7f256a4acaa4 WTF::Detail::CallableWrapper&lt;std::_Bind&lt;void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()&gt;, void&gt;::call()
 23  0x7f2564de9c22 WTF::Function&lt;void ()&gt;::operator()() const
 24  0x7f2564ed32e6 WTF::RunLoop::Timer::fired()
 25  0x7f25592611d9 operator()
 26  0x7f2559261219 _FUN
 27  0x7f255926063f operator()
 28  0x7f255926068d _FUN
 29  0x7f25595a6d36 g_main_context_dispatch
 30  0x7f25596042b8 g_main_context_iterate.isra.0
 31  0x7f25595a63ff g_main_loop_run
 WebKitWebProcess terminated (pid 130237) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048544</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-26 00:21:17 -0700</bug_when>
    <thetext>The assertion was added by 276714@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048555</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-26 01:06:56 -0700</bug_when>
    <thetext>This is reproducible on my PC
Windows port Debug build 281386@main.

&gt; python .\Tools\Scripts\run-webkit-tests --debug  --iter=1000 -f fast/events/drag-text-with-clear.html fast/events/event-handler-detached-document.html fast/events/event-creation.html fast/events/drag-outside-window.html fast/events/event-handler-detached-document-dispatchEvent.html fast/events/event-input-contentEditable.html

[328/6000] fast/events/event-creation.html failed unexpectedly (WebProcess crashed [pid=31412])
[381/6000] fast/events/event-handler-detached-document.html failed unexpectedly (WebProcess crashed [pid=25528])
[546/6000] fast/events/event-input-contentEditable.html failed unexpectedly (WebProcess crashed [pid=34864])</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048905</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-07-27 14:28:55 -0700</bug_when>
    <thetext>fast/events/event-handler-detached-document.html is also flaky crash.
https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fevents%2Fevent-handler-detached-document.html
https://build.webkit.org/results/Apple-Sonoma-Debug-AppleSilicon-WK1-Tests/280999@main%20(3597)/fast/events/event-handler-detached-document-crash-log.txt

ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext()
/Volumes/Data/worker/Apple-Sonoma-Debug-Build/build/Source/WebCore/html/HTMLMediaElement.cpp(8784) : virtual bool WebCore::HTMLMediaElement::isSuspended() const
1   0x127bccdf8 WebCore::HTMLMediaElement::isSuspended() const
2   0x128a65260 WebCore::PlatformMediaSession::isSuspended() const
3   0x127cd790c WebCore::MediaElementSession::preferredBufferingPolicy() const
4   0x127cd717c WebCore::MediaElementSession::updateClientDataBuffering()
5   0x127cd6c10 WebCore::MediaElementSession::clientDataBufferingTimerFired()
6   0x127ced6c4 decltype(*std::declval&lt;WebCore::MediaElementSession*&amp;&gt;().*std::declval&lt;void (WebCore::MediaElementSession::*&amp;)()&gt;()()) std::__1::__invoke[abi:sn170006]&lt;void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;, void&gt;(void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&amp;)
7   0x127ced644 std::__1::__bind_return&lt;void (WebCore::MediaElementSession::*)(), std::__1::tuple&lt;WebCore::MediaElementSession*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::MediaElementSession::*)(), std::__1::tuple&lt;WebCore::MediaElementSession*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__apply_functor[abi:sn170006]&lt;void (WebCore::MediaElementSession::*)(), std::__1::tuple&lt;WebCore::MediaElementSession*&gt;, 0ul, std::__1::tuple&lt;&gt;&gt;(void (WebCore::MediaElementSession::*&amp;)(), std::__1::tuple&lt;WebCore::MediaElementSession*&gt;&amp;, std::__1::__tuple_indices&lt;0ul&gt;, std::__1::tuple&lt;&gt;&amp;&amp;)
8   0x127ced5fc std::__1::__bind_return&lt;void (WebCore::MediaElementSession::*)(), std::__1::tuple&lt;WebCore::MediaElementSession*&gt;, std::__1::tuple&lt;&gt;, __is_valid_bind_return&lt;void (WebCore::MediaElementSession::*)(), std::__1::tuple&lt;WebCore::MediaElementSession*&gt;, std::__1::tuple&lt;&gt;&gt;::value&gt;::type std::__1::__bind&lt;void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&gt;::operator()[abi:sn170006]&lt;&gt;()
9   0x127ced5a0 WTF::Detail::CallableWrapper&lt;std::__1::__bind&lt;void (WebCore::MediaElementSession::*&amp;)(), WebCore::MediaElementSession*&gt;, void&gt;::call()
10  0x126b2dcc0 WTF::Function&lt;void ()&gt;::operator()() const
11  0x12348e298 WebCore::Timer::fired()
12  0x128a0f1e4 WebCore::ThreadTimers::sharedTimerFiredInternal()
13  0x128a19780 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
14  0x128a1972c WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call()
15  0x126b2dcc0 WTF::Function&lt;void ()&gt;::operator()() const
16  0x1289b6524 WebCore::MainThreadSharedTimer::fired()
17  0x128abe700 WebCore::timerFired(__CFRunLoopTimer*, void*)
18  0x18b2c65b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
19  0x18b2c625c __CFRunLoopDoTimer
20  0x18b2c5d94 __CFRunLoopDoTimers
21  0x18b2a91cc __CFRunLoopRun
22  0x18b2a8434 CFRunLoopRunSpecific
23  0x1024a4508 runTest(std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt;&gt; const&amp;)
24  0x1024a37d0 runTestingServerLoop()
25  0x1024a2e34 dumpRenderTree(int, char const**)
26  0x1024a4e60 DumpRenderTreeMain(int, char const**)
27  0x10257a02c main
28  0x18ae420e0 start</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2050231</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-01 21:47:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/133035485&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>