Bug 962313 - Disable <input type=number> for v28. r=smaug, a=lsblakk
authorJonathan Watt <jwatt@jwatt.org>
Tue, 11 Feb 2014 13:40:56 +0000
changeset 176276 5251d57dc768942dc7ce799897647fa4d1742785
parent 176267 58908dc356c157181e741f7385c51f726113a16b
child 176277 6fcfad7c096b6e5538072b37dc8c6cca13be7b18
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)
reviewerssmaug, lsblakk
bugs962313
milestone28.0
Bug 962313 - Disable <input type=number> for v28. r=smaug, a=lsblakk
modules/libpref/src/init/all.js
testing/marionette/client/marionette/tests/unit/test_text.py
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -864,18 +864,18 @@ pref("dom.send_after_paint_to_content", 
 // Timeout clamp in ms for timeouts we clamp
 pref("dom.min_timeout_value", 4);
 // And for background windows
 pref("dom.min_background_timeout_value", 1000);
 
 // Don't use new input types
 pref("dom.experimental_forms", false);
 
-// Enable <input type=number>:
-pref("dom.forms.number", true);
+// Disable <input type=number>:
+pref("dom.forms.number", false);
 
 // Enable <input type=color> by default. It will be turned off for remaining
 // platforms which don't have a color picker implemented yet.
 pref("dom.forms.color", true);
 
 // Enables system messages and activities
 pref("dom.sysmsg.enabled", false);
 
--- a/testing/marionette/client/marionette/tests/unit/test_text.py
+++ b/testing/marionette/client/marionette/tests/unit/test_text.py
@@ -25,16 +25,17 @@ class TestText(MarionetteTestCase):
         test_html = self.marionette.absolute_url("test.html")
         self.marionette.navigate(test_html)
         l = self.marionette.find_element("name", "myInput")
         self.assertEqual("asdf", self.marionette.execute_script("return arguments[0].value;", [l]))
         l.send_keys("o")
         self.assertEqual("asdfo", self.marionette.execute_script("return arguments[0].value;", [l]))
 
     def test_send_keys_to_type_input(self):
+        return # <input type=number> is disabled for v28
         test_html = self.marionette.absolute_url("html5/test_html_inputs.html")
         self.marionette.navigate(test_html)
         num_input = self.marionette.find_element('id', 'number')
         self.assertEqual("", self.marionette.execute_script("return arguments[0].value", [num_input]))
         num_input.send_keys("1234")
         self.assertEqual('1234', self.marionette.execute_script("return arguments[0].value", [num_input]))
 
     def test_should_fire_key_press_events(self):