Steve Sobol wrote:
Huh. Ok, that's cool. QueryInterface -- or the equivalent method in
SWT's Browser object, I think it's getInterface -- works for all of the
other interfaces I'm using. I was not aware that I was accessing them
the wrong way!
Well, there's things that you can access using
Q
In article <5_udnss6lv2_wzxwnz2dnuvz_hqdn...@mozilla.org>,
grant_ga...@ca.ibm.com says...
>
> The lines you want are:
>
> nsIServiceManager serviceManager =
> Mozilla.getInstance().getServiceManager();
> nsIFaviconService service =
> (nsIFaviconService)serviceManager.getServiceByContractID("@moz
The lines you want are:
nsIServiceManager serviceManager =
Mozilla.getInstance().getServiceManager();
nsIFaviconService service =
(nsIFaviconService)serviceManager.getServiceByContractID("@mozilla.org/brows
er/favicon-service;1", nsIFaviconService.NS_IFAVICONSERVICE_IID);
If you're asking which s
In article ,
cbiesin...@gmail.com says...
>
> Steve Sobol wrote:
> > 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(nsIFavicon
Steve Sobol wrote:
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);
The webbrowser object doesn't i
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(faviconU