rem: var app = info.preferredApplicationHandler; 
add:  var app = info.preferredApplicationHandler || window.arguments[0].chosenApp; 
context: function Startup(){  doSetOKCancel(onOK);    gDescriptionField = document.getElementById("description");  gExtensionField   = document.getElementById("extensions");  gMIMEField        = document.getElementById("mimeType");  gAppPath          = document.getElementById("appPath");      gPrefApplicationsBundle = document.getElementById("bundle_prefApplications");  // If an arg was passed, then it's an nsIHelperAppLauncherDialog  if ( "arguments" in window && window.arguments[0] ) {      // Get mime info.      var info = window.arguments[0].mLauncher.MIMEInfo;      // Fill the fields we can from this.      gDescriptionField.value = info.Description;      gExtensionField.value   = info.primaryExtension;      gMIMEField.value        = info.MIMEType;      var app = info.preferredApplicationHandler;      if ( app ) {          gAppPath.value      = app.unicodePath;      }      // Don't let user change mime type.      gMIMEField.setAttribute( "readonly", "true" );      // Start user in app field.      gAppPath.focus();  } else {      gDescriptionField.focus();  }  sizeToContent();  moveToAlertPosition();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/073e999f03c06e32918c010e1f30a4818dbcb4c1/pref-applications-new.js/clean/xpfe/components/prefwindow/resources/content/pref-applications-new.js