rem: function onLoad() 
add: function onLoad() 
context: function onLoad() {  bundle = srGetStrBundle("chrome://communicator/locale/openLocation.properties");    dialog                = new Object;  dialog.input          = document.getElementById("dialog.input");  dialog.help           = document.getElementById("dialog.help");  dialog.open           = document.getElementById("ok");  dialog.openAppList    = document.getElementById("openAppList");  dialog.openTopWindow  = document.getElementById("currentWindow");  dialog.openEditWindow = document.getElementById("editWindow");    browser = window.arguments[0];  if (!browser) {    // No browser supplied - we are calling from Composer    dialog.openAppList.selectedItem = dialog.openEditWindow;    dialog.openTopWindow.setAttribute("disabled", "true");  }   else {    dialog.openAppList.selectedItem = dialog.openTopWindow;  }    // change OK button text to 'open'  dialog.open.setAttribute("value", bundle.GetStringFromName("openButtonLabel"));  doSetOKCancel(open, 0, 0, 0);    dialog.input.focus();  if (pref) {    try {      var data = pref.GetIntPref("general.open_location.last_window_choice");      var element = dialog.openAppList.getElementsByAttribute("data", data)[0];      if (element)        dialog.openAppList.selectedItem = element;      dialog.input.value = pref.CopyUnicharPref("general.open_location.last_url");         }    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/f17b66929dfbdda35587b944072b9af16850e6ec/openLocation.js/buggy/suite/common/openLocation.js