rem: if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); }  if (gPromptService) { var result = {value:"http: if (gPromptService.prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = result.value; AddAttachment(attachment); } } 
add: if (gPromptService) { var result = {value:"http: if (gPromptService.prompt( window, sComposeMsgsBundle.getString("attachPageDlogTitle"), sComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = result.value; AddAttachment(attachment); } } 
context: function AttachPage(){     if (!gPromptService) {       gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();       gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);     }          if (gPromptService)     {        var result = {value:"http://"};        if (gPromptService.prompt(          window,          gComposeMsgsBundle.getString("attachPageDlogTitle"),          gComposeMsgsBundle.getString("attachPageDlogMessage"),            result,          null,          {value:0}))        {          var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment);          attachment.url = result.value;          AddAttachment(attachment);        }     }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6d52592e83bce2a07c0c6646de9e9c15df155849/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js