Bug 964576 - fix target is null JS error in Australis' CustomizableUI, r=mikedeboer

--HG--
extra : rebase_source : ca5becbaee6af43108454419cf432246988e1ce6
This commit is contained in:
Gijs Kruitbosch 2014-01-28 11:17:44 +00:00
parent 8152ca0bcb
commit 1eb634dd55

View File

@ -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;