mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 964576 - fix target is null JS error in Australis' CustomizableUI, r=mikedeboer
--HG-- extra : rebase_source : ca5becbaee6af43108454419cf432246988e1ce6
This commit is contained in:
parent
8152ca0bcb
commit
1eb634dd55
@ -1204,6 +1204,11 @@ let CustomizableUIInternal = {
|
||||
|
||||
let target = aEvent.originalTarget;
|
||||
let panel = this._getPanelForNode(aEvent.currentTarget);
|
||||
// This can happen in e.g. customize mode. If there's no panel,
|
||||
// there's clearly nothing for us to close; pretend we're interactive.
|
||||
if (!panel) {
|
||||
return true;
|
||||
}
|
||||
// We keep track of:
|
||||
// whether we're in an input container (text field)
|
||||
let inInput = false;
|
||||
|
Loading…
Reference in New Issue
Block a user