rem: theWindow = window.opener.frames[0]; 
add: if ("gBrowser" in window.opener) theWindow = window.opener.gBrowser.contentWindow; else theWindow = window.opener.frames[0]; 
context: function onLoadPageInfo(){  //dump("===============================================================================\n");  var theBundle = document.getElementById("pageinfobundle");  var unknown = theBundle.getString("unknown");  var docTitle = "";  if("arguments" in window && window.arguments.length >= 1 && window.arguments[0])  {    theWindow = null;    theDocument = window.arguments[0];    docTitle = theBundle.getString("frameInfo.title");  }   else   {    theWindow = window.opener.frames[0];    theDocument = theWindow.document;    docTitle = theBundle.getString("pageInfo.title");  }  document.title = docTitle;  // do the easy stuff first  makeGeneralTab();  /* Call registered overlay init functions */  for (x in onLoadRegistry)  {    onLoadRegistry[x]();  }  /* Select the requested tab, if the name is specified */  if ("arguments" in window && window.arguments.length > 1)  {    var tabName = window.arguments[1];    if (tabName)    {      var tabControl = document.getElementById("tabcontrol");      var tab = document.getElementById(tabName);      if (tabControl && tab)      {        tabControl.selectedTab = tab;      }    }  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/8f26b59dcb516bb46b13e295954ce647480ea475/pageInfo.js/buggy/xpfe/browser/resources/content/pageInfo.js