rem: refetchRelatedLinks(Handler, ContentWindow.location); 
add: if (ContentWindow) { refetchRelatedLinks(Handler, ContentWindow.location); } 
context: function Init(){	// Initialize the Related Links panel	// Create a Related Links handler, and install it in the tree	var Tree = document.getElementById("Tree");	Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource));	// Install the observer so we'll be notified when new content is loaded.	var ObserverService = Components.classes["component://netscape/observer-service"].getService();	ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService);	if (ObserverService)	{		ObserverService.AddObserver(Observer, "StartDocumentLoad");		ObserverService.AddObserver(Observer, "EndDocumentLoad");		ObserverService.AddObserver(Observer, "FailDocumentLoad");		debug("added observer\n");	}	else	{		debug("FAILURE to get observer service\n");	}	refetchRelatedLinks(Handler, ContentWindow.location);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7d6e82ab6b80255989394b3ce7ae8344e6844148/related-panel.js/buggy/suite/common/related/related-panel.js