I'm embedding Mozilla into a Java app using XULRunner 1.9.2, and I am
looking for a web page's favicon... so I do this:
nsIFaviconService fave = (nsIFaviconService)webBrowser.
queryInterface(nsIFaviconService.NS_IFAVICONSERVICE_IID);
nsIURI iconURI = fave.getFaviconImageForPage(faviconURI);
(faviconURI isn't properly named, it's an nsIURI representing the page
for which I want the favicon)
But when I run this code, I'm getting an XPCOMException
The function "QueryInterface" returned an error condition (0x80004002)
Doesn't that error code mean the interface doesn't exist?
I am compiling against the 1.9.2 JARs and have set
org.eclipse.swt.browser.XULRunnerPath to point to a 1.9.2 runtime. Also
tried this with 1.9.1.7. Mozilla's website says the interface has
existed since 1.9.1, and in Eclipse, if I go to the Package Explorer and
look at the JAR file, I can see that nsIFaviconService.class is there.
Any thoughts?
Thanks.
--
Steve Sobol, Victorville, California, USA
[email protected]
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding