Bug 1285897 - Async dispatch cuechange event on TextTrack object. r=rillian

MozReview-Commit-ID: DKWCAEaT58J
This commit is contained in:
bechen
2016-07-12 17:41:41 +08:00
parent 5643f354ff
commit 726efd3dd1
3 changed files with 14 additions and 1 deletions

View File

@@ -740,7 +740,7 @@ TextTrackManager::TimeMarchesOn()
for (uint32_t i = 0; i < affectedTracks.Length(); ++i) {
TextTrack* ttrack = affectedTracks[i];
if (ttrack) {
ttrack->DispatchTrustedEvent(NS_LITERAL_STRING("cuechange"));
ttrack->DispatchAsyncTrustedEvent(NS_LITERAL_STRING("cuechange"));
HTMLTrackElement* trackElement = ttrack->GetTrackElement();
if (trackElement) {
trackElement->DispatchTrackRunnable(NS_LITERAL_STRING("cuechange"));