Bug 1209766 - Update validation message before showing notification. r=khuey

This commit is contained in:
Stone Shih 2016-03-09 12:34:08 +08:00
Родитель 9b0ebddb01
Коммит b73b8123c3
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -118,6 +118,9 @@ FormSubmitObserver.prototype =
return;
}
// Update validation message before showing notification
this._validationMessage = element.validationMessage;
// Don't connect up to the same element more than once.
if (this._element == element) {
this._showPopup(element);
@ -127,8 +130,6 @@ FormSubmitObserver.prototype =
element.focus();
this._validationMessage = element.validationMessage;
// Watch for input changes which may change the validation message.
element.addEventListener("input", this, false);