James Newell wrote:
Error: [Exception... "Component returned failure code: 0x804b000a
http://twpol.dyndns.org/mozilla/misc/nserror?0x804b000a
That's NS_ERROR_MALFORMED_URI.
objURI.init(Components.interfaces.nsIStandardURL.URLTYPE_STANDARD,
-1, spec, charset, baseURI);
OK, that pretty much looks right...
the uri that is supposed to load is "epaedia://Life and
Times/intro.html"
Spaces are not allowed in hostnames, which is presumably why you get the result
you get.
If you don't really have a hostname, you probably want URLTYPE_NO_AUTHORITY
instead of URLTYPE_STANDARD, and something like:
epaedia:///Life and Times/intro.html
(note the three slashes). That's how file:// works, for example.
-Boris
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom