<?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>303035</bug_id>
          
          <creation_ts>2025-11-23 19:03:25 -0800</creation_ts>
          <short_desc>ASSERTION: ASSERT(isMainThread()); when watching protected content with MediaSourceUseRemoteAudioVideoRenderer enabled</short_desc>
          <delta_ts>2025-11-24 05:39:16 -0800</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>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="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2160963</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-11-23 19:03:25 -0800</bug_when>
    <thetext>```
* thread #30, queue = &apos;MediaSourcePrivateAVFObjC&apos;, stop reason = EXC_BAD_ACCESS (code=1, address=0x12f63d9d8)
Note: Possible pointer authentication failure detected.
Found value that failed to authenticate at address=0x12f63d9d8.
    frame #0: 0x0000000300002858 WebCore`WTFCrashWithInfo(line=56, file=&quot;/Users/jyavenard/Work/webkit/OpenSource/WebKitBuild/Debug/usr/local/include/wtf/NeverDestroyed.h&quot;, function=&quot;static void WTF::MainThreadAccessTraits::assertAccess()&quot;, counter=274) at Assertions.h:974:5
    frame #1: 0x00000003001f82f0 WebCore`WTF::MainThreadAccessTraits::assertAccess() at NeverDestroyed.h:56:9
    frame #2: 0x00000003001f831c WebCore`WTF::NeverDestroyed&lt;WTF::AtomString const, WTF::MainThreadAccessTraits&gt;::storagePointer(this=0x000000030ba36e50) const at NeverDestroyed.h:99:9
    frame #3: 0x00000003001e85b8 WebCore`WTF::NeverDestroyed&lt;WTF::AtomString const, WTF::MainThreadAccessTraits&gt;::operator WTF::AtomString const&amp;(this=0x000000030ba36e50) at NeverDestroyed.h:84:29
  * frame #4: 0x00000003001e8540 WebCore`WebCore::CDMPrivateFairPlayStreaming::sinfName() at CDMFairPlayStreaming.cpp:85:12
    frame #5: 0x00000003001ebbbc WebCore`WebCore::extractSinfData(buffer=0x000000017adfc100) at CDMFairPlayStreaming.cpp:108:39
    frame #6: 0x00000003001e87c0 WebCore`WebCore::extractSchemeAndKeyIdFromSinf(buffer=0x000000017adfc100) at CDMFairPlayStreaming.cpp:128:20
    frame #7: 0x00000003001e8674 WebCore`WebCore::CDMPrivateFairPlayStreaming::extractKeyIDsSinf(buffer=0x000000017adfc100) at CDMFairPlayStreaming.cpp:175:20
    frame #8: 0x00000003008e7c20 WebCore`_ZZN7WebCore26SourceBufferPrivateAVFObjC55didProvideContentKeyRequestInitializationDataForTrackIDEON3WTF3RefINS_12SharedBufferENS1_12RawPtrTraitsIS3_EENS1_21DefaultRefDerefTraitsIS3_EEEEyENK3$_1clINSt12experimental15fundamentals_v38expectedIvNS_18PlatformMediaErrorEEEEEDaOT_(this=0x000000017a4ec168, result=0x0000000173a227ce) at SourceBufferPrivateAVFObjC.mm:435:27
    frame #10: 0x00000003008e7a9c WebCore`std::__1::invoke_result&lt;WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1, std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&gt;::type std::__1::invoke[abi:sn200100]&lt;WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1, std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&gt;(__f=0x000000017a4ec168, __args=0x0000000173a227ce) at invoke.h:29:10
    frame #11: 0x00000003008e7a6c WebCore`auto WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::invokeWithVoidOrWithArg&lt;WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1, std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&gt;(f=0x000000017a4ec168, arg=0x0000000173a227ce) at NativePromise.h:997:20
    frame #12: 0x00000003008e7a3c WebCore`auto WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::whenSettled&lt;WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1&gt;(WTF::GuaranteedSerialFunctionDispatcher&amp;, WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1&amp;&amp;, WTF::Logger::LogSiteIdentifier const&amp;)::&apos;lambda&apos;(std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&amp;&amp;)::operator()(this=0x000000017a4ec168, result=0x0000000173a227ce) at NativePromise.h:1029:20
    frame #13: 0x00000003008e7968 WebCore`WTF::Detail::CallableWrapper&lt;auto WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::whenSettled&lt;WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1&gt;(WTF::GuaranteedSerialFunctionDispatcher&amp;, WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1&amp;&amp;, WTF::Logger::LogSiteIdentifier const&amp;)::&apos;lambda&apos;(std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&amp;&amp;), void, auto WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::whenSettled&lt;WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1&gt;(WTF::GuaranteedSerialFunctionDispatcher&amp;, WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SharedBuffer&gt;&gt;&amp;&amp;, unsigned long long)::$_1&amp;&amp;, WTF::Logger::LogSiteIdentifier const&amp;)::&apos;lambda&apos;(std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&amp;&amp;)&gt;::call(this=0x000000017a4ec160, in=0x0000000173a227ce) at Function.h:59:39
    frame #14: 0x000000030079663c WebCore`WTF::Function&lt;void (std::experimental::fundamentals_v3::expected&lt;void, WebCore::PlatformMediaError&gt;&amp;&amp;)&gt;::operator()(this=0x000000017a564218, in=0x0000000173a227ce) const at Function.h:103:35
    frame #15: 0x0000000300795f7c WebCore`WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::ThenCallback&lt;false, void&gt;::processResult(this=0x000000017a5641d0, promise=0x000000017a0c0180, result=0x0000000173a227ce) at NativePromise.h:824:17
    frame #16: 0x0000000118aa4858 WebKit`WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::ThenCallbackBase::dispatch(WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;&amp;, WTF::Locker&lt;WTF::Lock&gt;&amp;)::&apos;lambda&apos;()::operator()(this=0x000000017a4ec808) at NativePromise.h:757:36
    frame #17: 0x0000000118aa42f0 WebKit`WTF::Detail::CallableWrapper&lt;WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;::ThenCallbackBase::dispatch(WTF::NativePromise&lt;void, WebCore::PlatformMediaError, 0u&gt;&amp;, WTF::Locker&lt;WTF::Lock&gt;&amp;)::&apos;lambda&apos;(), void&gt;::call(this=0x000000017a4ec800) at Function.h:59:39
    frame #18: 0x000000012bae95d8 JavaScriptCore`WTF::Function&lt;void ()&gt;::operator()(this=0x000000017a6443b0) const at Function.h:103:35
    frame #19: 0x000000012bcf49d4 JavaScriptCore`WTF::(anonymous namespace)::DispatchWorkItem::operator()(this=0x000000017a6443b0) at WorkQueueCocoa.cpp:40:25
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160964</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-11-23 19:03:33 -0800</bug_when>
    <thetext>&lt;rdar://problem/165322277&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160990</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-11-23 22:40:56 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/54403</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2161035</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-11-24 05:39:14 -0800</bug_when>
    <thetext>Committed 303490@main (07e98f6bcf9a): &lt;https://commits.webkit.org/303490@main&gt;

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

    </bug>

</bugzilla>