Changing convertChromeURL

git-svn-id: svn://10.0.0.236/trunk@69716 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2000-05-15 01:40:52 +00:00
parent c3eb4a5e2a
commit e13add5c1e
6 changed files with 22 additions and 10 deletions

View File

@@ -684,11 +684,16 @@ nsChromeProtocolHandler::NewChannel(nsIURI* aURI,
rv = aURI->Clone(getter_AddRefs(chromeURI)); // don't mangle the original
if (NS_FAILED(rv)) return rv;
rv = reg->ConvertChromeURL(chromeURI);
char* spec;
rv = reg->ConvertChromeURL(chromeURI, &spec);
if (NS_FAILED(rv)) return rv;
// now fetch the converted URI
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
nsCOMPtr<nsIProtocolHandler> protocolHandler;
serv->NewURI(spec, nsnull, getter_AddRefs(chromeURI));
nsAllocator::Free(spec);
// now fetch the converted URI
if (NS_FAILED(rv)) return rv;
rv = serv->NewChannelFromURI(chromeURI, getter_AddRefs(result));