Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c61fc2d47d2a3634d27047b55e3a3b6b27efb185
https://github.com/WebKit/WebKit/commit/c61fc2d47d2a3634d27047b55e3a3b6b27efb185
Author: Fujii Hironori <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M Source/WebCore/testing/Internals.cpp
Log Message:
-----------
REGRESSION(300263@main): [GLib] wrong downcast to MediaSessionManagerGLib in
Internals::resetToConsistentState
https://bugs.webkit.org/show_bug.cgi?id=300353
Reviewed by Carlos Garcia Campos.
Running layout tests were randomly crashing due to heap corruption if WebKit
was compiled by GCC 14.
<https://commits.webkit.org/300263@main> changed the type of a local variable
sessionManager from MediaSessionManagerInterface& to
RefPtr<MediaSessionManagerInterface> in Internals::resetToConsistentState. We
should use sessionManager.get() instead of &sessionManager to get the pointer
of MediaSessionManagerInterface.
Use static_cast<MediaSessionManagerGLib*>() instead of
reinterpret_cast<MediaSessionManagerGLib*>() to downcast the pointer.
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState):
Canonical link: https://commits.webkit.org/301187@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes