rem:  if (promptService) 
add: if (gPromptService) 
context: function ComposeCanClose(){  if (sendOrSaveOperationInProgress)  {      if (promptService)      {        var promptTitle = gComposeMsgsBundle.getString("quitComposeWindowTitle");        var promptMsg = gComposeMsgsBundle.getString("quitComposeWindowMessage");        if (promptService.confirm(window, promptTitle, promptMsg))          {            msgCompose.abort();            return true;          }        else           {            return false;          }      }  }	// Returns FALSE only if user cancels save action	if (contentChanged || msgCompose.bodyModified)	{		// call window.focus, since we need to pop up a dialog		// and therefore need to be visible (to prevent user confusion)		window.focus();        		if (promptService)		{            var result = {value:0};            promptService.confirmEx(window,                              gComposeMsgsBundle.getString("saveDlogTitle"),                              gComposeMsgsBundle.getString("saveDlogMessage"),                              (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) +                              (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) +                              (promptService.BUTTON_TITLE_DONT_SAVE * promptService.BUTTON_POS_2),                              null, null, null,                              null, {value:0}, result);			if (result)			{				switch (result.value)				{					case 0: //Save                        if (LastToClose())                            NotifyQuitApplication();						SaveAsDraft();						break;					case 1:	//Cancel						return false;					case 2:	//Don't Save						break;				}			}		}		msgCompose.bodyModified = false;		contentChanged = false;	}	return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/58c2cb97b722e415727774a9972e3080113344e5/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js