I tried the example code but it doesn't work for me. I don't understand it. Can you please help me to understand what this code does and how I can use it. I tried this:
nsIWebNavigation webnav = (nsIWebNavigation)window.queryInterface(nsIWebNavigation.NS_IWEBNAVIGATION_IID); log.debug(webnav.getClass().getName()); nsIDocShellTreeNode node = (nsIDocShellTreeNode)webnav.queryInterface(nsIDocShellTreeNode.NS_IDOCSHELLTREENODE_IID); log.debug(node.getClass().getName()); log.debug(node.getChildCount()); window is of type nsIDOMWindow. It fails at the first line. Martin Javier Pedemonte schrieb: > For this particular case, you should follow the example code specified > by Christian Biesinger (rather than relying on this hack). > > > javier pedemonte _______________________________________________ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom