mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
[Pale-Moon] Issue #1870 - Add try/catch and console logging for failing autocomplete popup.
This commit is contained in:
parent
d46c25b5e5
commit
4bcb79066b
1 changed files with 9 additions and 4 deletions
|
|
@ -188,10 +188,15 @@ this.AutoCompletePopup = {
|
|||
|
||||
closePopup() {
|
||||
if (this.openedPopup) {
|
||||
// Note that hidePopup() closes the popup immediately,
|
||||
// so popuphiding or popuphidden events will be fired
|
||||
// and handled during this call.
|
||||
this.openedPopup.hidePopup();
|
||||
try {
|
||||
// Note that hidePopup() closes the popup immediately,
|
||||
// so popuphiding or popuphidden events will be fired
|
||||
// and handled during this call.
|
||||
this.openedPopup.hidePopup();
|
||||
} catch(e) {
|
||||
Cu.reportError(e);
|
||||
console.log("Debug: ", this.openedPopup);
|
||||
}
|
||||
}
|
||||
AutoCompleteTreeView.clearResults();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue