<?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>225353</bug_id>
          
          <creation_ts>2021-05-04 06:59:14 -0700</creation_ts>
          <short_desc>[WPE][GTK] imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/suspend-after-construct.html asserts</short_desc>
          <delta_ts>2021-05-07 08:05:19 -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>Platform</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1756522</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-04 06:59:14 -0700</bug_when>
    <thetext>Thread 1 (Thread 0x7ffaba578ec0 (LWP 39709)):
#0  WTFCrash() () at ../../Source/WTF/wtf/Assertions.cpp:305
#1  0x00007ffac443fd0f in CRASH_WITH_INFO(...) () at WTF/Headers/wtf/Assertions.h:742
#2  0x00007ffac81c4069 in WebCore::PlatformMediaSessionManager::setCurrentSession(WebCore::PlatformMediaSession&amp;) (this=0x7ffab9c9a908, session=...) at ../../Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp:312
#3  0x00007ffac81c39ee in WebCore::PlatformMediaSessionManager::sessionWillBeginPlayback(WebCore::PlatformMediaSession&amp;) (this=0x7ffab9c9a908, session=...) at ../../Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp:231
#4  0x00007ffac81c2220 in WebCore::PlatformMediaSession::clientWillBeginPlayback() (this=0x7ffa552daf78) at ../../Source/WebCore/platform/audio/PlatformMediaSession.cpp:245
#5  0x00007ffac6cd3ee9 in WebCore::AudioContext::willBeginPlayback() (this=0x7ffa557b92c0) at ../../Source/WebCore/Modules/webaudio/AudioContext.cpp:402
#6  0x00007ffac6cd35de in WebCore::AudioContext::resumeRendering(WebCore::DOMPromiseDeferred&lt;void&gt;&amp;&amp;) (this=0x7ffa557b92c0, promise=...) at ../../Source/WebCore/Modules/webaudio/AudioContext.cpp:252
#7  0x00007ffac9210522 in operator()() const (__closure=0x7ffc52fad110) at WebCore/DerivedSources/JSAudioContext.cpp:306
#8  0x00007ffac9219a8c in WebCore::toJS&lt;WebCore::IDLPromise&lt;WebCore::IDLUndefined&gt;, WebCore::jsAudioContextPrototypeFunction_resumeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::IDLOperationReturningPromise&lt;WebCore::JSAudioContext&gt;::ClassParameter, WTF::Ref&lt;WebCore::DeferredPromise&gt;&amp;&amp;)::&lt;lambda()&gt; &gt;(JSC::JSGlobalObject &amp;, WebCore::JSDOMGlobalObject &amp;, JSC::ThrowScope &amp;, struct {...} &amp;&amp;) (lexicalGlobalObject=..., globalObject=..., throwScope=..., valueOrFunctor=...) at ../../Source/WebCore/bindings/js/JSDOMConvertBase.h:195
#9  0x00007ffac9210635 in WebCore::jsAudioContextPrototypeFunction_resumeBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::IDLOperationReturningPromise&lt;WebCore::JSAudioContext&gt;::ClassParameter, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;) (lexicalGlobalObject=0x7ffa4dc38fc0, callFrame=0x7ffc52fad2f0, castedThis=0x7ffa55424020, promise=...) at WebCore/DerivedSources/JSAudioContext.cpp:306
#10 0x00007ffac9219c16 in operator()(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;) const (this=0x7ffc52fad1e8, lexicalGlobalObject=..., callFrame=..., promise=...) at ../../Source/WebCore/bindings/js/JSDOMOperationReturningPromise.h:52
#11 0x00007ffac921d6b4 in WebCore::callPromiseFunction&lt;WebCore::IDLOperationReturningPromise&lt;JSClass&gt;::call&lt;WebCore::jsAudioContextPrototypeFunction_resumeBody, (WebCore::CastedThisErrorBehavior)2&gt;::&lt;lambda(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, WTF::Ref&lt;WebCore::DeferredPromise&gt;&amp;&amp;)&gt; &gt;(JSC::JSGlobalObject &amp;, JSC::CallFrame &amp;, struct {...}) (lexicalGlobalObject=..., callFrame=..., functor=...) at ../../Source/WebCore/bindings/js/JSDOMPromiseDeferred.h:337
#12 0x00007ffac9219c4e in WebCore::IDLOperationReturningPromise&lt;WebCore::JSAudioContext&gt;::call&lt;WebCore::jsAudioContextPrototypeFunction_resumeBody&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*) (lexicalGlobalObject=..., callFrame=..., operationName=0x7ffacdac6af7 &quot;resume&quot;) at ../../Source/WebCore/bindings/js/JSDOMOperationReturningPromise.h:41
#13 0x00007ffac9210694 in WebCore::jsAudioContextPrototypeFunction_resume(JSC::JSGlobalObject*, JSC::CallFrame*) (lexicalGlobalObject=0x7ffa4dc38fc0, callFrame=0x7ffc52fad2f0) at WebCore/DerivedSources/JSAudioContext.cpp:311
#14 0x00007ffa799871d8 in  ()
#15 0x00007ffc52fad370 in  ()
#16 0x00007ffabf1f2822 in llint_op_call () at /app/webkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm:1097
#17 0x0000000000000000 in  ()

STDERR: ASSERTION FAILED: index != notFound
STDERR: ../../Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp(312) : virtual void WebCore::PlatformMediaSessionManager::setCurrentSession(WebCore::PlatformMediaSession&amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757865</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-07 08:03:13 -0700</bug_when>
    <thetext>Fixed by bug 225332. I will unflag the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757866</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-07 08:05:19 -0700</bug_when>
    <thetext>r277173</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>