add: try { var useAutoFill = pref.getBoolPref("browser.urlbar.autoFill"); if (useAutoFill) dialog.input.setAttribute("completedefaultindex", "true"); } catch (ex) {}  
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;  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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/0a9bc5c9d09b2628d92c60cddf3529f6b37986f1/openLocation.js/clean/browser/base/content/openLocation.js