rem: var errorTitle = gComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle"); var errorMsg = gComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage"); if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); } 
add: var errorTitle = sComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle"); var errorMsg = sComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage"); 
context:   onDrop: function (aEvent, aData, aDragSession)    {      var prettyName;      var rawData = aData.data;      switch (aData.flavour.contentType) {      case "text/x-moz-url":      case "text/nsmessageOrFolder":        var separator = rawData.indexOf("\n");        if (separator != -1) {          prettyName = rawData.substr(separator+1);          rawData = rawData.substr(0,separator);        }        break;      case "application/x-moz-file":        rawData = aData.data.URL;        break;      }      if (!(DuplicateFileCheck(rawData)))      {        var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment);        attachment.url = rawData;        attachment.name = prettyName;        AddAttachment(attachment);      }      else {        var errorTitle = gComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle");        var errorMsg = gComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage");        if (!gPromptService) {          gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();          gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);        }        if (gPromptService)          gPromptService.alert(window, errorTitle, errorMsg);        else          window.alert(errorMsg);      }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6d52592e83bce2a07c0c6646de9e9c15df155849/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js