rem: if (soundURL.indexOf("file:   gSound.playSystemSound(soundURL); } else { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var url = ioService.newURI(soundURL, null, null); gSound.play(url) } 
add: if (gFinishedSound.value != "") gSound.play(gIOService.newURI(gFinishedSound.value, null, null)); else gSound.beep(); 
context: function PreviewSound(){  var soundURL = document.getElementById("finishedSoundUrl").value;  if (!gSound)    gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound);  if (soundURL.indexOf("file://") == -1) {    // XXX todo see if we can create a nsIURL from the native file path    // otherwise, play a system sound    gSound.playSystemSound(soundURL);  }  else {    var ioService = Components.classes["@mozilla.org/network/io-service;1"]                              .getService(Components.interfaces.nsIIOService);    var url = ioService.newURI(soundURL, null, null);    gSound.play(url)  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1717ddc26aae8a637c366d2b87dafd0950f50454/pref-download.js/clean/suite/common/pref/pref-download.js