Fix browser.js ReferenceError
authorPatrick Walton <pwalton@mozilla.com>
Fri, 10 Feb 2012 16:17:15 -0800
changeset 92434 d957fe7de35637f0a66952c273d98bfe6382b692
parent 92433 8822397fc42db6f1d27022cdc809e2ae88f13f3c
child 92435 44d0e5c43b20aacddd8adc5239f4952b142acfe4
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone13.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
Fix browser.js ReferenceError
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1670,17 +1670,17 @@ Tab.prototype = {
     dump("### JS side updateViewport " + aReset + " zoom " + aZoomLevel + "\n");
 
     if (!aZoomLevel)
       aZoomLevel = this.getDefaultZoomLevel();
 
     let win = this.browser.contentWindow;
     //FIXME: Uncomment when zoom is working again.
     //let zoom = (aReset ? aZoomLevel : this._viewport.zoom);
-    zoom = 1;
+    let zoom = 1;
     let xpos = ((aReset && win) ? win.scrollX * zoom : this._viewport.x);
     let ypos = ((aReset && win) ? win.scrollY * zoom : this._viewport.y);
 
     this.viewportExcess = { x: 0, y: 0 };
     this.viewport = { x: xpos, y: ypos,
                       offsetX: 0, offsetY: 0,
                       width: this._viewport.width, height: this._viewport.height,
                       pageWidth: gScreenWidth, pageHeight: gScreenHeight,