Bug 561203 - Can't zoom out by double-tapping on www.travelocity.com [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Fri, 23 Apr 2010 13:25:51 -0400
changeset 66168 f399de4c8870a7270525484e39eb52562ae45a97
parent 66167 2ff91a7d1c7739578360eb45e5474a4948c6ee3d
child 66169 d19073add08b6b48b30e080455958af55841ed59
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs561203
Bug 561203 - Can't zoom out by double-tapping on www.travelocity.com [r=mfinkle]
mobile/chrome/content/BrowserView.js
--- a/mobile/chrome/content/BrowserView.js
+++ b/mobile/chrome/content/BrowserView.js
@@ -611,17 +611,17 @@ BrowserView.prototype = {
 
     // If pageZoom is "almost" 100%, zoom in to exactly 100% (bug 454456).
     let granularity = gPrefService.getIntPref("browser.ui.zoom.pageFitGranularity");
     let threshold = 1 - 1 / granularity;
     if (threshold < pageZoom && pageZoom < 1)
       pageZoom = 1;
 
     let metaData = Util.getViewportMetadata(browser);
-    if (metaData.reason)
+    if (metaData.scale)
       return Math.max(metaData.scale, pageZoom);
 
     return pageZoom;
   },
 
   getPageZoomLevel: function getPageZoomLevel() {
     let bvs = this._browserViewportState;  // browser exists, so bvs must as well
     let w = this.viewportToBrowser(bvs.viewportRect.right);