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() {
|
closePopup() {
|
||||||
if (this.openedPopup) {
|
if (this.openedPopup) {
|
||||||
// Note that hidePopup() closes the popup immediately,
|
try {
|
||||||
// so popuphiding or popuphidden events will be fired
|
// Note that hidePopup() closes the popup immediately,
|
||||||
// and handled during this call.
|
// so popuphiding or popuphidden events will be fired
|
||||||
this.openedPopup.hidePopup();
|
// and handled during this call.
|
||||||
|
this.openedPopup.hidePopup();
|
||||||
|
} catch(e) {
|
||||||
|
Cu.reportError(e);
|
||||||
|
console.log("Debug: ", this.openedPopup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
AutoCompleteTreeView.clearResults();
|
AutoCompleteTreeView.clearResults();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue