rem: if (commonDialogsService) 
add: if (promptService) 
context: function ComposeCanClose(){	// 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 (commonDialogsService)		{            var result = {value:0};			commonDialogsService.UniversalDialog(				window,				null,				gComposeMsgsBundle.getString("saveDlogTitle"),				gComposeMsgsBundle.getString("saveDlogMessage"),				null,				gComposeMsgsBundle.getString("saveDlogSaveBtn"),				gComposeMsgsBundle.getString("saveDlogCancelBtn"),				gComposeMsgsBundle.getString("saveDlogDontSaveBtn"),				null,				null,				null,				{value:0},				{value:0},				"chrome://global/skin/question-icon.gif",				{value:"false"},				3,				0,				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/d3733a74488d23b1c54ca4e48f0b8d8f459ca2e7/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js