Bug 1189879 - Don't use a CSS viewport height of 480 in desktop mode; compute it from the screen aspect ratio. r=snorp
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 31 Jul 2015 16:07:35 -0400
changeset 287396 8c44dfae03c937d4f717bc28ce92794d08679c3b
parent 287395 4f0b81bb6e85afa831d821c351c67a750cb595ba
child 287397 27a64c1be104819e9bd908eef736f4da6334b4d3
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1189879
milestone42.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 1189879 - Don't use a CSS viewport height of 480 in desktop mode; compute it from the screen aspect ratio. r=snorp
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6597,17 +6597,17 @@ var ViewportHandler = {
       readerMode = tab.browser.contentDocument.documentURI.startsWith("about:reader");
     } catch (e) {
     }
     if (tab.desktopMode && !readerMode) {
       return new ViewportMetadata({
         minZoom: kViewportMinScale,
         maxZoom: kViewportMaxScale,
         width: kDefaultCSSViewportWidth,
-        height: kDefaultCSSViewportHeight,
+        height: -1,
         allowZoom: true,
         allowDoubleTapZoom: true,
         isSpecified: false
       });
     }
 
     let windowUtils = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);