mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
Previously, an audio loader could succeed for an HTMLVideoElement that contains a video file, which caused the duration to be set to the bogus duration of the audio loader instead of the correct duration from the video container. Instead of setting the duration based on audio always, set it to the video duration if we are creating a video element.
95 KiB
95 KiB