rem: dialog.openTopWindow.setAttribute("disabled", "true"); 
add:   dialog.openTopWindow.setAttribute("label", dialog.bundle.getString("existingNavigatorWindow"));   var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); if (windowManagerInterface) browser = windowManagerInterface.getMostRecentWindow( "navigator:browser" );   if (!browser) dialog.openTopWindow.setAttribute("disabled", "true"); 
context: function onLoad(){  dialog.input          = document.getElementById("dialog.input");  dialog.open           = document.getElementById("ok");  dialog.openAppList    = document.getElementById("openAppList");  dialog.openTopWindow  = document.getElementById("currentWindow");  dialog.openEditWindow = document.getElementById("editWindow");  dialog.bundle         = document.getElementById("openLocationBundle");  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.label = dialog.bundle.getString("openButtonLabel");  doSetOKCancel(open, 0, 0, 0);  dialog.input.focus();  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.CopyUnicharPref("general.open_location.last_url");    }    catch(ex) {    }    if (dialog.input.value)      dialog.input.select(); // XXX should probably be done automatically  }  doEnabling();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b1f8acd5196ea216183943f5e979120da5975ac6/openLocation.js/buggy/suite/common/openLocation.js