зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1401876 - (Part 1) Close datetime picker on popuphidden. r=mconley
MozReview-Commit-ID: FUqbtAftQxh --HG-- extra : rebase_source : 9570536f7d46d5e8a481d36ed90d81c6f4e8183d
This commit is contained in:
Родитель
17f6f5f45c
Коммит
e8af7b7a7d
|
@ -190,6 +190,7 @@ class DateTimeTestHelper {
|
|||
let pickerClosePromise = new Promise(resolve => {
|
||||
this.panel.addEventListener("popuphidden", resolve, {once: true});
|
||||
});
|
||||
this.panel.hidePopup();
|
||||
this.panel.closePicker();
|
||||
await pickerClosePromise;
|
||||
}
|
||||
|
|
|
@ -75,7 +75,6 @@
|
|||
this.dateTimePopupFrame.removeEventListener("load", this, true);
|
||||
this.dateTimePopupFrame.contentDocument.removeEventListener("message", this);
|
||||
this.dateTimePopupFrame.setAttribute("src", "");
|
||||
this.hidePopup();
|
||||
this.hidden = true;
|
||||
]]></body>
|
||||
</method>
|
||||
|
@ -320,6 +319,7 @@
|
|||
break;
|
||||
}
|
||||
case "ClosePopup": {
|
||||
this.hidePopup();
|
||||
this.closePicker();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ this.DateTimePickerHelper = {
|
|||
if (browser) {
|
||||
browser.messageManager.sendAsyncMessage("FormDateTime:PickerClosed");
|
||||
}
|
||||
this.picker.closePicker();
|
||||
this.close();
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче