Bug 1359815 - show throbber sooner;
MozReview-Commit-ID: L3MX5AzwIY2
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -514,17 +514,20 @@
* "canplay" event which indicates that the resuming operation
* is completed.
*/
SHOW_THROBBER_TIMEOUT_MS: 250,
_showThrobberTimer: null,
_delayShowThrobberWhileResumingVideoDecoder() {
this._showThrobberTimer = setTimeout(() => {
this.statusIcon.setAttribute("type", "throbber");
- this.setupStatusFader();
+ // Show the throbber immediatelly since we have waited for SHOW_THROBBER_TIMEOUT_MS.
+ // We don't want to wait for another transition-delay(750ms) and the
+ // transition-duration(300ms).
+ this.setupStatusFader(true);
}, this.SHOW_THROBBER_TIMEOUT_MS);
},
_cancelShowThrobberWhileResumingVideoDecoder() {
if (this._showThrobberTimer) {
clearTimeout(this._showThrobberTimer);
this._showThrobberTimer = null;
}
},