Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 21d6c8734704cef281f0ad029e20ba409e434cc0
https://github.com/WebKit/WebKit/commit/21d6c8734704cef281f0ad029e20ba409e434cc0
Author: Jer Noble <[email protected]>
Date: 2026-04-23 (Thu, 23 Apr 2026)
Changed paths:
M Source/WebCore/html/HTMLMediaElement.cpp
M Source/WebCore/html/HTMLMediaElement.h
Log Message:
-----------
REGRESSION(311815@main): ASSERT in
Document::addScreenPropertiesChangedObserver(),
!m_screenPropertiesChangedObservers.contains(observer)
rdar://175436583
https://bugs.webkit.org/show_bug.cgi?id=313144
Reviewed by Andy Estes.
Ensure the ScreenPropertyChangedObserver is removed from the
HTMLMediaElement's document during unregisterWithDocument()
by making it a RefPtr and explicitly nulling it out, ensuring
the same observer is not added twice to the same document.
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::m_remote):
(WebCore::HTMLMediaElement::registerWithDocument):
(WebCore::HTMLMediaElement::unregisterWithDocument):
* Source/WebCore/html/HTMLMediaElement.h:
Canonical link: https://commits.webkit.org/311910@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications