rem:   var cwindowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var iwindowManager = Components.interfaces.nsIWindowMediator; var windowManager  = cwindowManager.QueryInterface(iwindowManager);  var historyWindow = windowManager.getMostRecentWindow('history:manager');  if (historyWindow) {  historyWindow.focus(); } else {   if (true == gDisableHistory) {  return; } gDisableHistory = true;  window.open( "chrome: "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar" ); setTimeout(enableHistory, 2000); }  
add: toOpenWindowByType("history:manager", "chrome: 
context: function toHistory(){  // Use a single sidebar history dialog  var cwindowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var iwindowManager = Components.interfaces.nsIWindowMediator;  var windowManager  = cwindowManager.QueryInterface(iwindowManager);  var historyWindow = windowManager.getMostRecentWindow('history:manager');  if (historyWindow) {    //debug("Reuse existing history window");    historyWindow.focus();  } else {    //debug("Open a new history dialog");    if (true == gDisableHistory) {      //debug("Recently opened one. Wait a little bit.");      return;    }    gDisableHistory = true;    window.open( "chrome://communicator/content/history/history.xul", "_blank",        "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar" );    setTimeout(enableHistory, 2000);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/dce8de5c635d1b5aa15e22ff40d1937b5ccdcc69/navigator.js/clean/xpfe/browser/resources/content/navigator.js