Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 896cb9dcb969ffd0f773bf01bf4bd5dbeb3a00c1
https://github.com/WebKit/WebKit/commit/896cb9dcb969ffd0f773bf01bf4bd5dbeb3a00c1
Author: Anne van Kesteren <[email protected]>
Date: 2026-01-05 (Mon, 05 Jan 2026)
Changed paths:
M Source/WTF/wtf/Vector.h
M Source/WebCore/html/HTMLMediaElement.cpp
M Source/WebCore/html/track/AudioTrackList.cpp
M Source/WebCore/html/track/AudioTrackList.h
M Source/WebCore/html/track/TextTrackList.cpp
M Source/WebCore/html/track/TextTrackList.h
M Source/WebCore/html/track/TrackListBase.cpp
M Source/WebCore/html/track/TrackListBase.h
M Source/WebCore/html/track/VideoTrackList.cpp
M Source/WebCore/html/track/VideoTrackList.h
M Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm
Log Message:
-----------
Change Vector<RefPtr<TrackBase>> to a Vector of Ref and reduce unsafeness
https://bugs.webkit.org/show_bug.cgi?id=304941
Reviewed by Alex Christensen.
As part of this we also change a number of methods to return a RefPtr
rather than an ordinary pointer as not doing that would be unsafe. The
reason the compiler currently does not complain about them is because
the lack of safety is being masked by downcast<> calls.
* Source/WTF/wtf/Vector.h:
In order to preserve the rather clean calls to find() Claude AI
assisted me in adding support for that to Vector, inspired by similar
code in HashMap.
Canonical link: https://commits.webkit.org/305142@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications