From 566e4381c96e2afa13031ee60df2ef487d4ae443 Mon Sep 17 00:00:00 2001 From: Kaku Kuo Date: Mon, 8 May 2017 17:42:31 +0800 Subject: [PATCH] Bug 1359815 - show throbber sooner; r=ralin MozReview-Commit-ID: L3MX5AzwIY2 --HG-- extra : rebase_source : b2f57e6af9811d442c1315cc3f7f36487c33bf50 --- toolkit/content/widgets/videocontrols.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toolkit/content/widgets/videocontrols.xml b/toolkit/content/widgets/videocontrols.xml index 569d2c9262c2..dfa6c08f926d 100644 --- a/toolkit/content/widgets/videocontrols.xml +++ b/toolkit/content/widgets/videocontrols.xml @@ -519,7 +519,10 @@ _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() {