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
This commit is contained in:
Alastor Wu
2019-03-13 05:28:44 +00:00
parent 98e01986c3
commit 84b1cfe3b0

View File

@@ -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);