I have a code, which worked fine on mozilla 1.7. On Firefox 1.5b2 it
does not work and fail on procedure do_CreateInstance (if I put it out
for test, it fail on next do_CreateInstance).
Code:
nsXXXHandler::NewURI(const nsACString &aSpec,
const char *aCharset, // ignore charset info
nsIURI *aBaseURI,
nsIURI **result) {
nsresult rv;
nsCOMPtr<nsIStandardURL> url = do_CreateInstance(kStandardURLCID, &rv);
//this don't succeeded and fail
if (NS_FAILED(rv)) return rv;//here jump out with message
"###!!! ASSERTION: Malformed URI in capability.principal preference.:
'Error', file /home/Vlada/Firefox/mozilla/caps/src/nsPrincipal.cpp,
line 633
Break: at file /home/Vlada/Firefox/mozilla/caps/src/nsPrincipal.cpp,
line 633
"
On this one place is possible to "resolve" it by calling
nsCOMPtr<nsIStandardURL> url = new nsStandardURL(PR_TRUE); instead,
but this method I need to use on other places, where fails too.
The code is compiled with
#define XPCOM_GLUE_USE_NSPR
and
MOZILLA_INTERNAL_API = 1 in Makefile (because of included libraries)
Those was not need on Mozilla1.7
Can anybody tell me, what I do wrong?
Thank,
Vladimir Cerny
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom