Re: problem getting URI from nsIwebNavigation

2005-07-25 Thread Anatoly Kaverin
Hello Niky, thnx for your help. We have access to service manager inside the mozilla plug-in and maybe we have an error with quering interface nsIComponentManager instead of using nsComponentManager. We are using nsIComponentManager from mozilla SDK. But we still can't get URI, below is our

Re: problem getting URI from nsIwebNavigation

2005-07-25 Thread Christian Biesinger
Anatoly Kaverin wrote: But we still can't get URI, below is our code: You are writing an extension for Firefox or Mozilla? Which URI do you want? There might be a lot or nsIWebNavigation instances - each tab has one, for example. Which of those webnavigations do you want to access?

Re: problem getting URI from nsIwebNavigation

2005-07-22 Thread Niky Williams
Here is what we use in our embedded Gecko app, and it seems to work fine: //- //Temp vars nsIWebNavigation *piwnWebNavigation = nsnull; nsIURI *piuURI = nsnull; nsCString csString; //QIing for the web navigation object

Re: problem getting URI from nsIwebNavigation

2005-07-22 Thread Christian Biesinger
Niky Williams wrote: Also, I noticed that if I tried to get the nsIURI object BEFORE the web page had completely loaded, I got NULL for that object. So I had to wait till I was notified that the web page was completely loaded before I tried to do this. This could maybe be your problem? It