Bug 714071 - The Show Statistics setting is not preserved when toggling the full screen mode. r=neil

This commit is contained in:
Diogo Golovanevsky Monteiro 2012-02-13 11:07:07 -08:00
Родитель 8307497987
Коммит 8ea3a1426a
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -448,6 +448,10 @@
this.controlBar.hidden = true;
this.adjustControlSize();
// Preserve Statistics when toggling fullscreen mode due to bug 714071.
if (this.video.mozMediaStatisticsShowing)
this.showStatistics(true);
this._handleCustomEventsBound = this.handleCustomEvents.bind(this);
this.video.addEventListener("media-showStatistics", this._handleCustomEventsBound, false, true);
},