Bug 1491066 - Allow TextTrackManager to pass cue without videocontrols r=alwu

With UA Widget, the videocontrols container is created lazily.
It won't be a problem for WebVTT.processCues() in vtt.jsm, so
TextTrackManager::UpdateCueDisplay() should not early return there, but pass
nullptr to it.

Differential Revision: https://phabricator.services.mozilla.com/D3667
This commit is contained in:
Timothy Guan-tin Chien
2018-09-13 22:38:43 +00:00
parent 07f94a4f21
commit 6d1c85846d
2 changed files with 5 additions and 1 deletions

View File

@@ -276,7 +276,7 @@ TextTrackManager::UpdateCueDisplay()
nsCOMPtr<nsIContent> overlay = videoFrame->GetCaptionOverlay();
nsCOMPtr<nsIContent> controls = videoFrame->GetVideoControls();
if (!overlay || !controls) {
if (!overlay) {
return;
}