Bug 799194: Add an initial query of the reflow-on-zoom preference to preserve user's choice from previous session. [r=mfinkle]
authorScott Johnson <sjohnson@mozilla.com>
Thu, 11 Oct 2012 16:20:27 -0500
changeset 110115 080a2b984d4875b8ce590ea9964919c1a3d126b1
parent 110114 5b727a94eebdb8e6002546912e814c9c0c7556ac
child 110116 6a994799088b424e367f451f97cea31cd6e81db7
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersmfinkle
bugs799194
milestone19.0a1
Bug 799194: Add an initial query of the reflow-on-zoom preference to preserve user's choice from previous session. [r=mfinkle]
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -3544,16 +3544,17 @@ var BrowserEventHandler = {
     BrowserApp.deck.addEventListener("touchstart", this, true);
     BrowserApp.deck.addEventListener("click", InputWidgetHelper, true);
     BrowserApp.deck.addEventListener("click", SelectHelper, true);
     document.addEventListener("MozMagnifyGestureStart", this, true);
     document.addEventListener("MozMagnifyGestureUpdate", this, true);
     document.addEventListener("MozMagnifyGesture", this, true);
 
     Services.prefs.addObserver("browser.zoom.reflowOnZoom", this, false);
+    this.updateReflozPref();
   },
 
   updateReflozPref: function() {
      this.mReflozPref = Services.prefs.getBoolPref("browser.zoom.reflowOnZoom");
   },
 
   handleEvent: function(aEvent) {
     if (aEvent.type && (aEvent.type === "MozMagnifyGesture" ||