mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibWeb: Remove OOM error propagation from HTMLMediaElement (and friends)
This commit is contained in:
parent
dd16ea87c3
commit
13422b5116
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/trflynn89
Commit: 13422b5116
Pull-request: https://github.com/SerenityOS/serenity/pull/24121
Reviewed-by: https://github.com/awesomekling ✅
7 changed files with 15 additions and 22 deletions
|
@ -44,12 +44,10 @@ JS::ThrowCompletionOr<Optional<JS::PropertyDescriptor>> VideoTrackList::internal
|
|||
return Base::internal_get_own_property(property_name);
|
||||
}
|
||||
|
||||
ErrorOr<void> VideoTrackList::add_track(Badge<HTMLMediaElement>, JS::NonnullGCPtr<VideoTrack> video_track)
|
||||
void VideoTrackList::add_track(Badge<HTMLMediaElement>, JS::NonnullGCPtr<VideoTrack> video_track)
|
||||
{
|
||||
TRY(m_video_tracks.try_append(video_track));
|
||||
m_video_tracks.append(video_track);
|
||||
video_track->set_video_track_list({}, this);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void VideoTrackList::remove_all_tracks(Badge<HTMLMediaElement>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue