This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
video.currentSrc should not be reset when a new load errors
https://bugs.webkit.org/show_bug.cgi?id=225451 <rdar://77961629> Reviewed by Eric Carlson. A media element's currentSrc attribute should not be reset if a load ends up erroring. This was happening due to the reset of currentSrc in the prepareForLoad method. Instead of resetting the URL, we should instead just set the unique media identifier. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-currentSrc-expected.txt: Media test removed since this condition is already covered by the above WPT test. * LayoutTests/media/video-currentsrc-cleared-expected.txt: Removed. * LayoutTests/media/video-currentsrc-cleared.html: Removed. * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::prepareForLoad): Canonical link: https://commits.webkit.org/251899@main
- Loading branch information
Showing 4 changed files with 2 additions and 48 deletions.