From a sidebar I am using the following to get a reference to the main
window. In ff 3.0 mainWindow.title gave me what I expected--the title
of the selected tab. In ff 3.5 mainWindow.title is undefined for me.
Any suggestions?

var mainWindow = window.QueryInterface
(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigati on)
.QueryInterface(Components.interfaces.nsIDocShellT reeItem)
.rootTreeItem
.QueryInterface(Components.interfaces.nsIInterface Requestor)
.getInterface(Components.interfaces.nsIDOMWindow);

-n