This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Implement automatic text track selection for 'metadata' tracks
https://bugs.webkit.org/show_bug.cgi?id=259581 rdar://problem/113004825 Reviewed by Eric Carlson. This patch aligns WebKit with Gecko / Firefox and Blink / Chromium. Merge: https://src.chromium.org/viewvc/blink?view=revision&revision=189185 Previously 'metadata' tracks were being configured using the "perform automatic text track selection" algorithm from the the spec, while it should only have applied step 4 of the "honor user preferences for automatic text track selection" algorithm. * Source/WebCore/html/HTMLMediaElement.cpp: (HTMLMediaElement::configureMetadataTextTrackGroup): function to handle 'metadata' as per spec (HTMLMediaElement::configureTextTrackGroup): for 'metadatatracks' use new function * Source/WebCore/html/HTMLMediaElement.h: Add definition for new function * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/track-selection-metadata-expected.txt: Rebaselined Canonical link: https://commits.webkit.org/266380@main
- Loading branch information
Showing 3 changed files with 21 additions and 3 deletions.