Dmitriy B. wrote:
Hello.
I have a small XUL document which look like this:
<window>
<button id="MyButton"></button>
<browser id="MyBrowser"></browser>
</window>

In my C++ code i try get access to the interface
nsIWebNavigation for the element "MyBrowser".

The problem is that all the goodies like the webNavigation property that are exposed by a <browser> are only defined in XBL and there is no interface to QI to to get those properties.


You may be able to get the contentDocument (not sure whether that would work) and go on from there to look for the associated DOMWindow and then go through the gyrations to get from a DOMWindow to the docshell and QI that to nsIWebNavigation.

The right thing to do is to file a toolkit bug to make the XBL bindings in question expose useful interfaces to something other than JavaScript... cross-posting this to n.p.m.xpfe because of that.

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to