rem: URI.spec = spec; 
add: var ioService = GetIOService(); URI = ioService.newURI(spec, window.editorShell.GetDocumentCharacterSet(), null); 
context: function CreateURIFromPublishData(publishData, doDocUri){  if (!publishData || !publishData.publishUrl)    return null;  var URI;  try {    URI = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIURI);    if (!URI)      return null;    var spec = publishData.publishUrl;    if (doDocUri)      spec += FormatDirForPublishing(publishData.docDir) + publishData.filename;     else      spec += FormatDirForPublishing(publishData.otherDir);    URI.spec = spec;    if (publishData.username)      URI.username = publishData.username;    if (publishData.password)      URI.password = publishData.password;  }  catch (e) {}  return URI;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d91b053f419d4d0175bdb25deed21f7800ac5c27/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js