Reenable font inflation by default on Fennec and add a pref controlling global zoom draft
authorJan Henning <jh+bugzilla@buttercookie.de>
Sun, 25 Dec 2016 22:56:48 +0100
changeset 453927 72c8cda23e06512fa688685eac8198660e862036
parent 453926 fa841811e17aa15fba1f80f6929b1e0dfb50d9e6
child 453928 cb417abd72c703bbded76b31bd391560e678ea09
push id39769
push usermozilla@buttercookie.de
push dateMon, 26 Dec 2016 18:12:31 +0000
milestone53.0a1
Reenable font inflation by default on Fennec and add a pref controlling global zoom MozReview-Commit-ID: BVrsKCGfzB2
mobile/android/app/mobile.js
modules/libpref/init/all.js
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -411,17 +411,18 @@ pref("dom.max_script_run_time", 20);
 
 // Absolute path to the devtools unix domain socket file used
 // to communicate with a usb cable via adb forward.
 pref("devtools.debugger.unix-domain-socket", "/data/data/@ANDROID_PACKAGE_NAME@/firefox-debugger-socket");
 
 pref("devtools.remote.usb.enabled", false);
 pref("devtools.remote.wifi.enabled", false);
 
-pref("font.size.inflation.minTwips", 0);
+pref("font.size.inflation.minTwips", 120);
+pref("browser.zoom.globalZoom", 100);
 
 // When true, zooming will be enabled on all sites, even ones that declare user-scalable=no.
 pref("browser.ui.zoom.force-user-scalable", false);
 
 // When removing this Nightly flag, also remember to remove the flags surrounding this feature
 // in GeckoPreferences and BrowserApp (see bug 1245930).
 #ifdef NIGHTLY_BUILD
 pref("ui.zoomedview.enabled", true);
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -3164,16 +3164,25 @@ pref("font.size.inflation.mappingInterce
  *
  * In order for this preference to have any effect, its value must be
  * greater than 100, since font inflation can never decrease the ratio
  * i/s.
  */
 pref("font.size.inflation.maxRatio", 0);
 
 /*
+ * A value greater than zero enables a global text zoom that will be
+ * applied to all pages not eligible for font inflation (i.e. any
+ * pages with an appropiate meta tag). Enabling this could interfere
+ * with user set zoom values, so this should only be used where no
+ * individual per-page zoom settings exist (e.g. on Fennec).
+ */
+pref("browser.zoom.globalZoom", 0);
+
+/*
  * When enabled, the touch.radius and mouse.radius prefs allow events to be dispatched
  * to nearby elements that are sensitive to the event. See PositionedEventTargeting.cpp.
  * The 'mm' prefs define a rectangle around the nominal event target point within which
  * we will search for suitable elements. 'visitedWeight' is a percentage weight;
  * a value > 100 makes a visited link be treated as further away from the event target
  * than it really is, while a value < 100 makes a visited link be treated as closer
  * to the event target than it really is.
  */