rem: doSetOKCancel(openOnOK, onCancel); 
add: document.documentElement.setAttribute("ondialogaccept", "openOnOK"); 
context: function getOKAction(file) {  var buttonLabel;  if (file && file.isDirectory() && filePickerMode != nsIFilePicker.modeGetFolder) {    doSetOKCancel(openOnOK, onCancel);    buttonLabel = gFilePickerBundle.getString("openButtonLabel");  }  else {    doSetOKCancel(selectOnOK, onCancel);    switch(filePickerMode) {    case nsIFilePicker.modeGetFolder:      buttonLabel = gFilePickerBundle.getString("selectFolderButtonLabel");      break;    case nsIFilePicker.modeOpen:      buttonLabel = gFilePickerBundle.getString("openButtonLabel");      break;    case nsIFilePicker.modeSave:      buttonLabel = gFilePickerBundle.getString("saveButtonLabel");      break;    }  }  return buttonLabel;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/faf3c34c9fdf543ed623b45b890e56eeba40300a/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js