Bug 1278151 - Fix web-platform/meta/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html. r=rillian
MozReview-Commit-ID: 7VuUfyegq2d
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user