rem:  dump("SetPrefToCurrentPage("+ url +") \n "); if ((url == null) || (url == "")) return;  var windowManager = Components.classes['component: var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); 
add: dump("SetPrefToCurrentPage("+ url +") \n "); if ((url == null) || (url == "")) return;  var windowManager = Components.classes['component: var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); 
context: function openTopWin( url ){  /* note that this chrome url should probably change to not have all of the navigator controls */  /* also, do we want to limit the number of help windows that can be spawned? */         dump("SetPrefToCurrentPage("+ url +") \n ");         if ((url == null) || (url == "")) return;                   var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService();         var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);          var topWindowOfType = windowManagerInterface.getMostRecentWindow( "navigator:browser" );         if ( topWindowOfType )         {                  dump("setting page: " + topWindowOfType.content.location.href + "\n");                         topWindowOfType.content.location.href = url;         }         else         {                 dump(" No browser window. Should be disabling this button \n");				 window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,dialog=no", url );         }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b109077b5ab3dd5bb7df1c58c3b6e36a56c3f07d/globalOverlay.js/buggy/xpfe/global/resources/content/globalOverlay.js