janekw wrote:
var navigation =
//Components.classes["@mozilla.org/webshell;1"]
Components.classes["@mozilla.org/embedding/browser/nsWebBrowser;1"]
.getService(Components.interfaces.nsIWebNavigation);

I wrote "if you have one" :) These classes aren't supposed to be used as services. So what you did creates new, uninitialized ones, which don't know their current URI.

Anyway, glad to hear it works now.

--
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...]     --W. Shakespeare
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to