rem: var promptService = null; try { promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); } catch (e) {} 
add: var promptService = GetPromptService(); 
context: function PromptAndSetTitleIfNone(aHTMLDoc){  if (!aHTMLDoc) throw NS_ERROR_NULL_POINTER;  var title = aHTMLDoc.title;  if (title.length > 0) // we have a title; no need to prompt!    return true;  var promptService = null;  try {    promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();    promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);  }  catch (e) {}  if (!promptService) return false;  var result = {value:null};  var captionStr = GetString("DocumentTitle");  var msgStr = GetString("NeedDocTitle") + '\n' + GetString("DocTitleHelp");  var confirmed = promptService.prompt(window, captionStr, msgStr, result, null, {value:0});  if (confirmed && result.value && result.value != "")    window.editorShell.SetDocumentTitle(result.value);  return confirmed;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d56262a401c9d60bbef8fdbf3317ef55705279f1/ComposerCommands.js/clean/editor/ui/composer/content/ComposerCommands.js