rem: nsuri.spec = href; 
add: localFile = fileHandler.getFileFromURLSpec(href).QueryInterface(nsILocalFile); 
context: function SerializeExternalSheet(sheet, href){  var nsuri = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIURI);  if (href)    nsuri.spec = href;  else    nsuri.spec = sheet.href;  var fileURL = nsuri.QueryInterface(Components.interfaces.nsIFileURL);  var localFile = fileURL.file;  var fileOuputStream = Components.classes['@mozilla.org/network/file-output-stream;1'].createInstance(Components.interfaces.nsIFileOutputStream);  try {    fileOuputStream.init(localFile, -1, -1, 0);    var cssText = "/* Generated by CaScadeS, a stylesheet editor for Mozilla Composer */\n\n";    var l = sheet.cssRules.length, tmp;    var re = /;\s*/;    var cssTextSplitted, ruleIndex, singleDeclIndex;        for (ruleIndex = 0; ruleIndex< l; ruleIndex++) {      tmp = sheet.cssRules.item(ruleIndex).cssText;      cssTextSplitted = tmp.split(re);      cssText += "  ";      for (singleDeclIndex=0; singleDeclIndex<cssTextSplitted.length; singleDeclIndex++) {        cssText += cssTextSplitted[singleDeclIndex];        if (singleDeclIndex != cssTextSplitted.length-1)          cssText += ";\n    ";      }      if (l > 1) cssText += "\n\n";    }    var textNode = document.createTextNode(cssText + "\n");    fileOuputStream.write(cssText, cssText.length);    fileOuputStream.close();  }  catch (ex) {}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f30d3ed334b276b661545ac9df74bc483ba398fa/commonCssProps.js/buggy/extensions/editor/cascades/resources/content/commonCssProps.js