Markus Hossner wrote:
Hi

I try to call a XPCOM-Interface function:

var iface = Components.interfaces.nsIMessenger
var inst = Components.classes["@mozilla.org/messenger;1"].getService(iface);
inst.OpenURL("http://www.google.com";);

I don't believe the messenger is a service, replace getService with createInstance and see if that helps.


You also don't mention if you're trying to run this from the browser or within something like XPCShell.

David




Reply via email to