зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1278151 - Fix web-platform/meta/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html. r=rillian
MozReview-Commit-ID: 7VuUfyegq2d --HG-- extra : rebase_source : d7d69c1511f65cba09337e7123ffba5c43f91127
This commit is contained in:
Родитель
c2f769c9f2
Коммит
fe0f6b220c
|
@ -145,7 +145,7 @@ TextTrackManager::AddTextTrack(TextTrackKind aKind, const nsAString& aLabel,
|
|||
AddCues(ttrack);
|
||||
|
||||
if (aTextTrackSource == Track) {
|
||||
HonorUserPreferencesForTrackSelection();
|
||||
NS_DispatchToMainThread(NewRunnableMethod(this, &TextTrackManager::HonorUserPreferencesForTrackSelection));
|
||||
}
|
||||
|
||||
return ttrack.forget();
|
||||
|
@ -160,7 +160,7 @@ TextTrackManager::AddTextTrack(TextTrack* aTextTrack)
|
|||
mTextTracks->AddTextTrack(aTextTrack, CompareTextTracks(mMediaElement));
|
||||
AddCues(aTextTrack);
|
||||
if (aTextTrack->GetTextTrackSource() == Track) {
|
||||
HonorUserPreferencesForTrackSelection();
|
||||
NS_DispatchToMainThread(NewRunnableMethod(this, &TextTrackManager::HonorUserPreferencesForTrackSelection));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ async_test(function(){
|
|||
var video = document.createElement('video');
|
||||
var t1 = video.addTextTrack('subtitles');
|
||||
var t1_cues = t1.cues;
|
||||
t1.mode = 'showing';
|
||||
t1.mode = 'hidden';
|
||||
var track = document.createElement('track');
|
||||
track['default'] = true;
|
||||
video.appendChild(track); // queues a task to "honor user preferences...", media element event task source
|
||||
|
|
Загрузка…
Ссылка в новой задаче