Bug 1359815 - show throbber sooner; r=ralin

MozReview-Commit-ID: L3MX5AzwIY2

--HG--
extra : rebase_source : b2f57e6af9811d442c1315cc3f7f36487c33bf50
This commit is contained in:
Kaku Kuo 2017-05-08 17:42:31 +08:00
Родитель 48ea643f20
Коммит 566e4381c9
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -519,7 +519,10 @@
_delayShowThrobberWhileResumingVideoDecoder() { _delayShowThrobberWhileResumingVideoDecoder() {
this._showThrobberTimer = setTimeout(() => { this._showThrobberTimer = setTimeout(() => {
this.statusIcon.setAttribute("type", "throbber"); 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); }, this.SHOW_THROBBER_TIMEOUT_MS);
}, },
_cancelShowThrobberWhileResumingVideoDecoder() { _cancelShowThrobberWhileResumingVideoDecoder() {