Bug 1512813 - Enable the Visual Viewport API on Android. r=kats
authorBotond Ballo <botond@mozilla.com>
Fri, 10 May 2019 22:57:29 +0000
changeset 532335 90bd618a94490e24c96157a224f92b68674f46b6
parent 532334 c8a2cbf18f3c8434aa69b21db050fe7af1f19251
child 532336 a9241feee65fa53207166a45e2682fd238f6dfa0
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1512813
milestone68.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 1512813 - Enable the Visual Viewport API on Android. r=kats Differential Revision: https://phabricator.services.mozilla.com/D30735
mobile/android/app/geckoview-prefs.js
mobile/android/app/mobile.js
--- a/mobile/android/app/geckoview-prefs.js
+++ b/mobile/android/app/geckoview-prefs.js
@@ -27,16 +27,19 @@ pref("geckoview.logging", "Debug");
 #endif
 
 // Disable Web Push until we get it working
 pref("dom.push.enabled", false);
 
 // enable external storage API
 pref("dom.storageManager.enabled", true);
 
+// enable Visual Viewport API
+pref("dom.visualviewport.enabled", true);
+
 // Use containerless scrolling.
 pref("layout.scroll.root-frame-containers", 0);
 
 // Inherit locale from the OS, used for multi-locale builds
 pref("intl.locale.requested", "");
 
 // Enable Safe Browsing blocklist updates
 pref("browser.safebrowsing.features.phishing.update", true);
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -522,16 +522,19 @@ pref("apz.fling_friction", "0.004");
 pref("apz.fling_stopped_threshold", "0.0");
 pref("apz.frame_delay.enabled", true);
 pref("apz.max_velocity_inches_per_ms", "0.07");
 pref("apz.overscroll.enabled", true);
 pref("apz.second_tap_tolerance", "0.3");
 pref("apz.touch_move_tolerance", "0.03");
 pref("apz.touch_start_tolerance", "0.06");
 
+// Enable the Visual Viewport API
+pref("dom.visualviewport.enabled", true);
+
 pref("layers.progressive-paint", true);
 pref("layers.low-precision-buffer", true);
 pref("layers.low-precision-resolution", "0.25");
 pref("layers.low-precision-opacity", "1.0");
 // We want to limit layers for two reasons:
 // 1) We can't scroll smoothly if we have to many draw calls
 // 2) Pages that have too many layers consume too much memory and crash.
 // By limiting the number of layers on mobile we're making the main thread