From 8ea3a1426a1c8a1e67713371c346cfc9eb608ebb Mon Sep 17 00:00:00 2001 From: Diogo Golovanevsky Monteiro Date: Mon, 13 Feb 2012 11:07:07 -0800 Subject: [PATCH] Bug 714071 - The Show Statistics setting is not preserved when toggling the full screen mode. r=neil --- toolkit/content/widgets/videocontrols.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toolkit/content/widgets/videocontrols.xml b/toolkit/content/widgets/videocontrols.xml index 6731cd2e6c23..83ae6beec0b5 100644 --- a/toolkit/content/widgets/videocontrols.xml +++ b/toolkit/content/widgets/videocontrols.xml @@ -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); },