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
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?
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
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