Bug 958666 - Disable autofocus on b2g. r=vingetun, a=1.3+
authorDale Harvey <dale@arandomurl.com>
Fri, 31 Jan 2014 03:29:18 +0000
changeset 176171 e19f79f6a19f8e5777a793246c4e23acb8f9355a
parent 176170 a312fdd5d6878da95c199a2f15c3f8517656a0cb
child 176172 cecfc49900e702f1e05682becf1ae2d10ebdeeae
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingetun, 1
bugs958666
milestone28.0a2
Bug 958666 - Disable autofocus on b2g. r=vingetun, a=1.3+
b2g/app/b2g.js
layout/reftests/forms/input/number/reftest.list
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -864,8 +864,12 @@ pref("apz.asyncscroll.throttle", 40);
 // the use of software (instead of hardware accelerated) 2D canvases by
 // creating a context like this:
 //
 //   canvas.getContext('2d', { willReadFrequently: true })
 //
 // Using a software canvas can save memory when JS calls getImageData()
 // on the canvas frequently. See bug 884226.
 pref("gfx.canvas.willReadFrequently.enable", true);
+
+// Disable autofocus until we can have it not bring up the keyboard.
+// https://bugzilla.mozilla.org/show_bug.cgi?id=965763
+pref("browser.autofocus", false);
--- a/layout/reftests/forms/input/number/reftest.list
+++ b/layout/reftests/forms/input/number/reftest.list
@@ -16,17 +16,19 @@ fuzzy-if(/^Windows\x20NT\x205\.1/.test(h
 
 # dynamic value changes:
 == show-value.html show-value-ref.html
 
 # disabled
 == number-disabled.html number-disabled-ref.html
 
 # focus
-needs-focus == focus-handling.html focus-handling-ref.html
+# autofocus is disabled on B2G
+# https://bugzilla.mozilla.org/show_bug.cgi?id=965763
+skip-if(B2G) needs-focus == focus-handling.html focus-handling-ref.html
 
 # select
 == number-selected.html number-selected-ref.html
 
 # pseudo-elements not usable from content:
 == number-pseudo-elements.html number-pseudo-elements-ref.html
 
 # check that if the anonymous text control is reframed, we reframe the whole