зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1533909 - part2 : add assertion to ensure we should always get a valid TextTrackCueList. r=jya
In this comparison, we only process `hidden` or `showing` track which should not return null TextTrackCueList. Differential Revision: https://phabricator.services.mozilla.com/D23087 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4c5f747109
Коммит
b399b16f25
|
@ -534,6 +534,7 @@ class CompareSimpleTextTrackEvents {
|
|||
}
|
||||
|
||||
TextTrackCueList* cueList = t1->GetCues();
|
||||
MOZ_ASSERT(cueList);
|
||||
nsTArray<RefPtr<TextTrackCue>>& cues = cueList->GetCuesArray();
|
||||
auto index1 = cues.IndexOf(c1);
|
||||
auto index2 = cues.IndexOf(c2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче