Bug 1322349 - Allow a touch swipe gesture at the top of the screen to show the URL bar in fullscreen mode. r?jaws draft
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 26 Jan 2017 12:12:09 -0500
changeset 466821 fb310c9875dfb1ea1564234da5506449f69e8535
parent 466816 d92fd6b6d6bfc5b566222ae2957e55772d60151a
child 543524 aba5aefb448ea8d2e2ca3be4849764f9331a170c
push id43005
push userkgupta@mozilla.com
push dateThu, 26 Jan 2017 17:12:47 +0000
reviewersjaws
bugs1322349
milestone54.0a1
Bug 1322349 - Allow a touch swipe gesture at the top of the screen to show the URL bar in fullscreen mode. r?jaws MozReview-Commit-ID: 8Gp4VkrMueu
browser/base/content/browser-fullScreenAndPointerLock.js
--- a/browser/base/content/browser-fullScreenAndPointerLock.js
+++ b/browser/base/content/browser-fullScreenAndPointerLock.js
@@ -291,16 +291,17 @@ var FullScreen = {
       document.getElementById("enterFullScreenItem").hidden = enterFS;
       document.getElementById("exitFullScreenItem").hidden = !enterFS;
     }
 
     if (!this._fullScrToggler) {
       this._fullScrToggler = document.getElementById("fullscr-toggler");
       this._fullScrToggler.addEventListener("mouseover", this._expandCallback);
       this._fullScrToggler.addEventListener("dragenter", this._expandCallback);
+      this._fullScrToggler.addEventListener("touchmove", this._expandCallback, {passive: true});
     }
 
     if (enterFS) {
       gNavToolbox.setAttribute("inFullscreen", true);
       document.documentElement.setAttribute("inFullscreen", true);
       if (!document.fullscreenElement && this.useLionFullScreen)
         document.documentElement.setAttribute("OSXLionFullscreen", true);
     } else {