context:   browseForSoundFile: function ()  {    const nsIFilePicker = Components.interfaces.nsIFilePicker;    var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);    // if we already have a sound file, then use the path for that sound file    // as the initial path in the dialog.    var localFile = this.convertURLToLocalFile(document.getElementById('soundUrlLocation').value);    if (localFile)      fp.displayDirectory = localFile;    // XXX todo, persist the last sound directory and pass it in    // XXX todo filter by .wav    fp.init(window, document.getElementById("bundlePreferences").getString("soundFilePickerTitle"), nsIFilePicker.modeOpen);    fp.appendFilters(nsIFilePicker.filterAll);    var ret = fp.show();    if (ret == nsIFilePicker.returnOK)     {      var mailnewsSoundFileUrl = document.getElementById("soundUrlLocation");      // convert the nsILocalFile into a nsIFile url       // mailnewsSoundFileUrl.value = fp.fileURL.spec;      document.getElementById("mail.biff.play_sound.url").value = fp.fileURL.spec;      this.readSoundLocation(); // XXX We shouldn't have to be doing this by hand    }  }, 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cd6ec565fe621ec0d0d807f468b6a031b835afe8/notifications.js/buggy/mail/components/preferences/notifications.js