rem: var errorTitle = gFilePickerBundle.getString("noPermissionTitle"); var errorMsg = gFilePickerBundle.getString("noPermissionError"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert(window, errorTitle, errorMsg); window.setCursor("auto"); return; 
add: document.getElementById("errorShower").selectedIndex = 1; 
context: function gotoDirectory(directory) {  window.setCursor("wait");  try {    outlinerView.setDirectory(directory);    populateAncestorList(directory);  } catch(ex) {    var errorTitle = gFilePickerBundle.getString("noPermissionTitle");    var errorMsg = gFilePickerBundle.getString("noPermissionError");    var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                              .getService(Components.interfaces.nsIPromptService);    promptService.alert(window, errorTitle, errorMsg);    window.setCursor("auto");    return;  }  window.setCursor("auto");  outlinerView.QueryInterface(nsIOutlinerView).selection.clearSelection();  textInput.focus();  sfile = directory;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ff3b62d806f45812b64857cb71d1976e97053bb3/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js