<?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>313145</bug_id>
          
          <creation_ts>2026-04-23 10:07:55 -0700</creation_ts>
          <short_desc>REGRESSION(311815@main): [macOS Debug]: ASSERTION FAILED: !m_screenPropertiesChangedObservers.contains(observer)</short_desc>
          <delta_ts>2026-04-23 10:09:59 -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>DUPLICATE</resolution>
          <dup_id>313144</dup_id>
          
          <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="Marta Darbinyan">darbinyan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <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>2203740</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2026-04-23 10:07:55 -0700</bug_when>
    <thetext>Multiple media tests are crashing in Debug after 311815@main.

fast/dom/crash-moving-subtree-between-documents.html
fast/events/event-handler-detached-document-dispatchEvent.html
fast/media/template-hidden.html
http/tests/lockdown-mode/media-element-is-suspended-crash.html
http/tests/webrtc/video-mediastream-invisible-autoplay-detached.html
imported/blink/fullscreen/full-screen-detached-document.html
imported/blink/media/track/media-element-move-to-new-document-assert.html
imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-into-iframe.html
imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/playing-the-media-resource/pause-move-to-other-document.html
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-audio-element/audio-appendChild-to-inactive-document-crash.html
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-audio-element/audio-play-in-inactive-document-crash.html
imported/w3c/web-platform-tests/html/semantics/forms/the-label-element/clicking-interactive-content.html
imported/w3c/web-platform-tests/html/semantics/forms/the-label-element/clicking-noninteractive-unlabelable-content.html
imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content.html
imported/w3c/web-platform-tests/shadow-dom/crashtests/move-to-new-tree-1343016.html
imported/w3c/web-platform-tests/shadow-dom/declarative/declarative-shadow-dom-basic.html
media/adopt-node-after-showing-picker-crash.html
media/adopt-node-crash.html
media/audio-controls-adoptNode.html
media/media-reparent.html
media/track/track-remove-crash.html
media/video-controls-adoptNode.html

ASSERTION FAILED: !m_screenPropertiesChangedObservers.contains(observer)
/Volumes/Data/worker/macOS-Tahoe-Debug-Build-EWS/build/Source/WebCore/dom/Document.cpp(8884) : void WebCore::Document::addScreenPropertiesChangedObserver(const ScreenPropertiesChangedObserver &amp;)
1   0x305975940 WebCore::Document::addScreenPropertiesChangedObserver(WTF::Observer&lt;void (unsigned int)&gt; const&amp;)
2   0x306090778 WebCore::HTMLMediaElement::registerWithDocument(WebCore::Document&amp;)
3   0x3060938a0 WebCore::HTMLMediaElement::didMoveToNewDocument(WebCore::Document&amp;, WebCore::Document&amp;)
4   0x3061ac278 WebCore::HTMLVideoElement::didMoveToNewDocument(WebCore::Document&amp;, WebCore::Document&amp;)

https://ews-build.webkit.org/#/builders/161/builds/26266

Test history:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fshadow-dom%2Fdeclarative%2Fdeclarative-shadow-dom-basic.html&amp;test=media%2Fadopt-node-after-showing-picker-crash.html&amp;test=media%2Fadopt-node-crash.html&amp;test=media%2Faudio-controls-adoptNode.html&amp;test=media%2Fmedia-reparent.html&amp;test=media%2Ftrack%2Ftrack-remove-crash.html&amp;test=media%2Fvideo-controls-adoptNode.html&amp;style=debug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203742</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-23 10:09:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/175436778&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203744</commentid>
    <comment_count>2</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2026-04-23 10:09:59 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 313144 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>