author | alwu <alwu@mozilla.com> |
Tue, 24 Mar 2020 19:19:07 +0000 | |
changeset 520287 | 0e7a3ae29aa06ca711de68abbad94c37109b2320 |
parent 520286 | fec7d30f881143c9aa5ed4348bf378385ba8425a |
child 520288 | fec9a6f7ae39fde00022e7975b7f965fe53018fe |
push id | 110987 |
push user | alwu@mozilla.com |
push date | Tue, 24 Mar 2020 20:21:56 +0000 |
treeherder | autoland@0e7a3ae29aa0 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | Gijs |
bugs | 1566199 |
milestone | 76.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/toolkit/content/widgets/videocontrols.js +++ b/toolkit/content/widgets/videocontrols.js @@ -1818,17 +1818,17 @@ this.VideoControlsImplWidget = class { }, get isCastingAvailable() { return !this.isAudioOnly && this.video.mozAllowCasting; }, get isClosedCaptionAvailable() { // There is no rendering area, no need to show the caption. - if (!this.video.videoWidth || !this.video.videoHeight) { + if (this.isAudioOnly) { return false; } return this.overlayableTextTracks.length; }, get overlayableTextTracks() { return Array.prototype.filter.call( this.video.textTracks,