Changed handling of pathnames under NECKO to avoid excess slashes "/".

git-svn-id: svn://10.0.0.236/trunk@41199 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gordon%netscape.com 1999-07-27 01:12:59 +00:00
parent dc1612b74e
commit 2cacee9b7f
2 changed files with 10 additions and 4 deletions

View File

@ -333,7 +333,10 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
if (NS_FAILED(rv = GetChromeResource(chromeBase, chromeResource, kCHROME_base))) {
// No base entry was found. Default to our cache.
chromeBase = "resource:/chrome/";
chromeBase += hostStr + "/";
chromeBase += hostStr;
#ifndef NECKO
chromeBase += "/";
#endif
chromeBase += packageType + "/";
if (chromeName != "")
chromeBase += chromeName + "/";
@ -371,7 +374,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
}
else
{
#if 0
#ifdef NECKO
// if path starts in a slash, remove it.
if (path[0] == '/')
path.Cut(0, 1);

View File

@ -333,7 +333,10 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
if (NS_FAILED(rv = GetChromeResource(chromeBase, chromeResource, kCHROME_base))) {
// No base entry was found. Default to our cache.
chromeBase = "resource:/chrome/";
chromeBase += hostStr + "/";
chromeBase += hostStr;
#ifndef NECKO
chromeBase += "/";
#endif
chromeBase += packageType + "/";
if (chromeName != "")
chromeBase += chromeName + "/";
@ -371,7 +374,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL)
}
else
{
#if 0
#ifdef NECKO
// if path starts in a slash, remove it.
if (path[0] == '/')
path.Cut(0, 1);