Improve consistency of conversion from about URI to about module. b=306261 r=darin sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@211807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2006-09-15 09:52:02 +00:00
parent 51a9abe7db
commit 3366e920ed

View File

@@ -42,6 +42,7 @@
#include "nsNetUtil.h"
#include "plstr.h"
#include "nsIScriptSecurityManager.h"
#include "nsAboutProtocolUtils.h"
NS_IMPL_ISUPPORTS1(nsAboutRedirector, nsIAboutModule)
@@ -81,12 +82,10 @@ nsAboutRedirector::NewChannel(nsIURI *aURI, nsIChannel **result)
nsresult rv;
nsCAutoString path;
rv = aURI->GetPath(path);
rv = NS_GetAboutModuleName(aURI, path);
if (NS_FAILED(rv))
return rv;
nsAboutProtocolHandler::StripQueryAndHash(path);
nsCOMPtr<nsIIOService> ioService = do_GetIOService(&rv);
if (NS_FAILED(rv))
return rv;