Bug 734714 - Some prompts broken: 'aDomWin is null' in prompt service r=wesj

This commit is contained in:
Mark Finkle 2012-03-12 15:53:45 -04:00
parent f58a156eed
commit db28b94c89

View File

@ -156,7 +156,8 @@ Prompt.prototype = {
if (aCheckMsg)
aInputs.push({ type: "checkbox", label: PromptUtils.cleanUpLabel(aCheckMsg), checked: aCheckState.value });
PromptUtils.fireDialogEvent(this._domWin, "DOMWillOpenModalDialog");
if (this._domWin)
PromptUtils.fireDialogEvent(this._domWin, "DOMWillOpenModalDialog");
let msg = { type: "Prompt:Show" };
if (aTitle) msg.title = aTitle;