Bug 858016 - Double click does not enable fullscreen mode. r=jaws
authorMax Li <maxli@maxli.ca>
Sun, 21 Apr 2013 21:23:19 -0400
changeset 140446 7567cbe92349b3f1d3b88377fbc7a0b529fe475c
parent 140445 8a971669e5493e5e99733819c0021738f19522d3
child 140447 f88be52706627a2b794c2e651a34f5608f3cf2d9
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs858016
milestone23.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 858016 - Double click does not enable fullscreen mode. r=jaws
toolkit/content/widgets/videocontrols.xml
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -1414,16 +1414,17 @@
                       elem.addEventListener(eventName, boundFunc, false);
                     }
 
                     addListener(this.muteButton, "command", this.toggleMute);
                     addListener(this.playButton, "command", this.togglePause);
                     addListener(this.fullscreenButton, "command", this.toggleFullscreen);
                     addListener(this.clickToPlay, "click", this.clickToPlayClickHandler);
                     addListener(this.controlsSpacer, "click", this.clickToPlayClickHandler);
+                    addListener(this.controlsSpacer, "dblclick", this.toggleFullscreen);
 
                     if (this.isAudioOnly) {
                       this.controlBar.classList.add("audio");
                     } else {
                       addListener(this.muteButton, "mouseover", this.onVolumeMouseInOut);
                       addListener(this.muteButton, "mouseout", this.onVolumeMouseInOut);
                       addListener(this.volumeStack, "mouseover", this.onVolumeMouseInOut);
                       addListener(this.volumeStack, "mouseout", this.onVolumeMouseInOut);