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";);


But I allways get the following error:

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED)
[nsIMessenger.OpenURL]"  nsresult: "0x80040154
(NS_ERROR_FACTORY_NOT_REGISTERED)"  location: "JS frame ::
chrome://test/content/test.js :: test :: line 34"  data: no]


Where is the fault in this code?

Thanks

Markus


Reply via email to