Bug 721626 - Video controls' fullscreen button exits fullscreen when in a fullscreen document. r=gavin
authorJared Wein <jwein@mozilla.com>
Fri, 27 Jan 2012 17:03:22 -0800
changeset 86805 a6e8ef1ef92635c2710cd529c3852588678ea579
parent 86804 c77a616744a20071a0e68f51b502049537ea440b
child 86806 71aeeb6a2547cb8cd4735d73c90b366974258407
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs721626
milestone12.0a1
Bug 721626 - Video controls' fullscreen button exits fullscreen when in a fullscreen document. r=gavin
toolkit/content/widgets/videocontrols.xml
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -934,17 +934,17 @@
                     this.video.muted = !this.video.muted;
 
                     // We'll handle style changes in the event listener for
                     // the "volumechange" event, same as if content script was
                     // controlling volume.
                 },
 
                 isVideoInFullScreen : function () {
-                    return document.mozFullScreenElement != null;
+                    return document.mozFullScreenElement == this.video;
                 },
 
                 toggleFullscreen : function () {
                     this.isVideoInFullScreen() ?
                         document.mozCancelFullScreen() :
                         this.video.mozRequestFullScreen();
                 },