Bug 675899 - HTML5 video player should show controls when video ends (if controls attribute is present). r=dolske
authorPaul ADENOT <paul@paul.cx>
Tue, 01 Nov 2011 14:22:02 -0700
changeset 79527 0c3d5e7ce23cab04d34fe68eb98d5d62f096ce14
parent 79526 127fc739a43fb1e07c800e7c216e7efdcc3ada5d
child 79528 23daeec7cfa23ea73a606b123ac108b02df077ce
push id21411
push usertim.taubert@gmx.de
push dateWed, 02 Nov 2011 09:59:28 +0000
treeherdermozilla-central@185e913a7061 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske
bugs675899
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 675899 - HTML5 video player should show controls when video ends (if controls attribute is present). r=dolske
toolkit/content/widgets/videocontrols.xml
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -472,16 +472,17 @@
                             this.setupStatusFader();
                             break;
                         case "ended":
                             this.setPlayButtonState(true);
                             // We throttle timechange events, so the thumb might not be
                             // exactly at the end when the video finishes.
                             this.showPosition(Math.round(this.video.currentTime * 1000),
                                               Math.round(this.video.duration * 1000));
+                            this.startFadeIn(this.controlBar);
                             this.setupStatusFader();
                             break;
                         case "volumechange":
                             var volume = this.video.muted ? 0 : Math.round(this.video.volume * 100);
                             this.setMuteButtonState(this.video.muted);
                             this.volumeControl.value = volume;
                             break;
                         case "loadedmetadata":