Bug 1322349 - Allow a touch swipe gesture at the top of the screen to show the URL bar in fullscreen mode. r=jaws a=jcristau
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 26 Jan 2017 12:12:09 -0500
changeset 375755 87ff239bdeb8e12394a069cda2eec29c7765449c
parent 375754 26f98ab7307248364557292295979f1452199ba3
child 375756 cc00a0e9025fb83a7f2265e02a3e1ad6c3b5c4c8
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, jcristau
bugs1322349
milestone53.0a2
Bug 1322349 - Allow a touch swipe gesture at the top of the screen to show the URL bar in fullscreen mode. r=jaws a=jcristau 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 {