Hello,

I am trying to load a URI using with the following code:

cls =
components.classes["@mozilla.org/embedding/browser/nsWebBrowser;1"]
wb = cls.createInstance(components.interfaces.nsIWebBrowser)
...
nav = wb.QueryInterface(components.interfaces.nsIWebNavigation)
nav.loadURI ("http://www.mozilla.org";,
components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE, None, None,
None);


I get this exception.

  File "WebChrome.py", line 143, in ?
    nav.loadURI ("http://www.google.com";,
components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE, None, None,
None);
  File "<XPCOMObject method 'loadURI'>", line 3, in loadURI
xpcom.Exception: -2147418113 (NS_ERROR_UNEXPECTED)


Do I need to initialize (something like NS_InitEmbedding) with some
function?

Tks & Regs
Gap

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to