add: gNavigatorBundle      = document.getElementById("navigatorBundle"); 
context: function onLoad(){  dialog.input          = document.getElementById("dialog.input");  dialog.open           = document.documentElement.getButton("accept");  dialog.openAppList    = document.getElementById("openAppList");  dialog.openTopWindow  = document.getElementById("currentWindow");  dialog.openEditWindow = document.getElementById("editWindow");  dialog.bundle         = document.getElementById("openLocationBundle");  if ("arguments" in window && window.arguments.length >= 1)    browser = window.arguments[0];     if (!browser) {    // No browser supplied - we are calling from Composer    dialog.openAppList.selectedItem = dialog.openEditWindow;    // Change string to make more sense for Composer    dialog.openTopWindow.setAttribute("label", dialog.bundle.getString("existingNavigatorWindow"));    // Find most recent browser window    var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();    var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);    if (windowManagerInterface)      browser = windowManagerInterface.getMostRecentWindow( "navigator:browser" );    // Disable "current browser" item if no browser is open    if (!browser)      dialog.openTopWindow.setAttribute("disabled", "true");  }  else {    dialog.openAppList.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.openAppList.getElementsByAttribute("value", value)[0];      if (element)        dialog.openAppList.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/34b6be9466f803f231178d5b2c0b03f506eb477c/openLocation.js/buggy/suite/common/openLocation.js