diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index 6b6b23ca2870..d11b578e08a3 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -4600,8 +4600,6 @@ void HTMLInputElement::HandleTypeChange(uint8_t aNewType, bool aNotify) { } void HTMLInputElement::SanitizeValue(nsAString& aValue) { - NS_ASSERTION(mDoneCreating, "The element creation should be finished!"); - switch (mType) { case NS_FORM_INPUT_TEXT: case NS_FORM_INPUT_SEARCH: diff --git a/dom/html/test/forms/mochitest.ini b/dom/html/test/forms/mochitest.ini index 882fa3088517..091410947596 100644 --- a/dom/html/test/forms/mochitest.ini +++ b/dom/html/test/forms/mochitest.ini @@ -71,6 +71,7 @@ skip-if = os == "android" skip-if = os == 'android' && debug # Extremely slow on debug android [test_input_textarea_set_value_no_scroll.html] [test_input_time_key_events.html] +[test_input_time_key_events.xhtml] [test_input_time_sec_millisec_field.html] [test_input_types_pref.html] [test_input_typing_sanitization.html] diff --git a/dom/html/test/forms/test_input_time_key_events.xhtml b/dom/html/test/forms/test_input_time_key_events.xhtml new file mode 100644 index 000000000000..f1c71681b2cd --- /dev/null +++ b/dom/html/test/forms/test_input_time_key_events.xhtml @@ -0,0 +1,206 @@ + + + + + Test key events for time control + + + + + + +Mozilla Bug 1288591 +

+
+ +
+
+
+
+ +