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 129499 7567cbe92349b3f1d3b88377fbc7a0b529fe475c
parent 129498 8a971669e5493e5e99733819c0021738f19522d3
child 129500 f88be52706627a2b794c2e651a34f5608f3cf2d9
push idunknown
push userunknown
push dateunknown
reviewersjaws
bugs858016
milestone23.0a1
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);