Bug 752486, don't check open state when closing form submit popup, r=dao

This commit is contained in:
Neil Deakin 2012-07-30 20:43:29 -04:00
Родитель 2b4b772866
Коммит 8179047503
1 изменённых файлов: 1 добавлений и 7 удалений

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

@ -648,12 +648,6 @@ const gFormSubmitObserver = {
this.panel = document.getElementById('invalid-form-popup');
},
panelIsOpen: function()
{
return this.panel && this.panel.state != "hiding" &&
this.panel.state != "closed";
},
notifyInvalidSubmit : function (aFormElement, aInvalidElements)
{
// We are going to handle invalid form submission attempt by focusing the
@ -3949,7 +3943,7 @@ var XULBrowserWindow = {
this._hostChanged = true;
// Hide the form invalid popup.
if (gFormSubmitObserver.panelIsOpen()) {
if (gFormSubmitObserver.panel) {
gFormSubmitObserver.panel.hidePopup();
}