rem: var modality = modal ? "yes" : "no"; var resizability = resizable ? "yes" : "no"; var features = "chrome,titlebar,modal=" + modality + ",resizable=" + resizability; openDialog("chrome: features, paneURL, containerID, itemID); 
add:  const kWindowMediatorContractID = "@mozilla.org/rdf/datasource;1?name=window-mediator"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.classes[kWindowMediatorContractID].getService(kWindowMediatorIID); var lastPrefWindow = kWindowMediator.getMostRecentWindow("mozilla:preferences"); if (lastPrefWindow) lastPrefWindow.focus(); else { var modality = modal ? "yes" : "no"; var resizability = resizable ? "yes" : "no"; var features = "chrome,titlebar,modal=" + modality + ",resizable=" + resizability; openDialog("chrome: features, paneURL, containerID, itemID); } 
context: function goPreferences(containerID, paneURL, itemID){  var modal, resizable;  var pref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);  try {    modal = pref.GetBoolPref( "browser.prefWindowModal");  }  catch (e) {    modal = true;  }  try {    // We are resizable ONLY if in box debugging mode, because in    // this special debug mode it is often impossible to see the     // content of the debug panel in order to disable debug mode.    resizable = pref.GetBoolPref("xul.debug.box");  }  catch (e) {    resizable = false;  }  var modality = modal ? "yes" : "no";  var resizability = resizable ? "yes" : "no";  var features = "chrome,titlebar,modal=" + modality + ",resizable=" + resizability;  openDialog("chrome://communicator/content/pref/pref.xul","PrefWindow",              features, paneURL, containerID, itemID);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c3afa90dcb929f55a728d0188eb0b01a1ccdf612/utilityOverlay.js/clean/xpfe/communicator/resources/content/utilityOverlay.js