rem:   dialog.open.label = dialog.bundle.getString("openButtonLabel"); 
context: function onLoad(){  dialog.input         = document.getElementById("dialog.input");  dialog.open          = document.documentElement.getButton("accept");  dialog.openWhereList = document.getElementById("openWhereList");  dialog.openTopWindow = document.getElementById("currentWindow");  dialog.bundle        = document.getElementById("openLocationBundle");  if ("arguments" in window && window.arguments.length >= 1)    browser = window.arguments[0];     dialog.openWhereList.selectedItem = dialog.openTopWindow;  // change OK button text to 'open'  dialog.open.label = dialog.bundle.getString("openButtonLabel");  if (pref) {    try {      var value = pref.getIntPref("general.open_location.last_window_choice");      var element = dialog.openWhereList.getElementsByAttribute("value", value)[0];      if (element)        dialog.openWhereList.selectedItem = element;      dialog.input.value = pref.getComplexValue("general.open_location.last_url",                                                Components.interfaces.nsISupportsString).data;    }    catch(ex) {    }    if (dialog.input.value)      dialog.input.select(); // XXX should probably be done automatically  }  doEnabling();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/af398109dc24204722b5d3242caf142efe72bd13/openLocation.js/buggy/browser/base/content/openLocation.js