On 02/04/2013 04:02 PM, [email protected] wrote:
Hi All,

I'm trying to use the nsIURIContentListener in javascript code in a web 
application.  Is it available in gecko? I've tested this example:

http://forums.mozillazine.org/viewtopic.php?t=501254&sid=a2f27a7ca70ecb78ef834d80ec86286e

in the FirefoxOS Simulator, in the ARM emulator and in the Firefox 17. It looks 
like this call:
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShell)                         
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIURIContentListener);

fails in it's second line. I understand it requires XUL and XPCOM, but both 
should be part of Gecko and available in FirefoxOS.

Any hints?
Thanks!
Jan


Hi Jan,
Could you explain why you are trying to use this interface? Using nsIURIContentListener is only advised in special situations in core Firefox code or extensions; for general web content, this is not the solution you actually are looking for.

Cheers,
Josh
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to