Fixing case sensitivity problem.
This commit is contained in:
Родитель
7156184a89
Коммит
a3d8385a9e
|
@ -227,8 +227,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
nsAutoString hostStr(host);
|
nsAutoString hostStr(host);
|
||||||
hostStr.ToLowerCase();
|
|
||||||
|
|
||||||
// Construct a chrome URL and use it to look up a resource.
|
// Construct a chrome URL and use it to look up a resource.
|
||||||
nsAutoString windowType = nsAutoString("chrome://") + hostStr + "/";
|
nsAutoString windowType = nsAutoString("chrome://") + hostStr + "/";
|
||||||
|
|
||||||
|
@ -236,8 +235,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
|
||||||
const char* file;
|
const char* file;
|
||||||
aChromeURL->GetFile(&file);
|
aChromeURL->GetFile(&file);
|
||||||
nsAutoString restOfURL(file);
|
nsAutoString restOfURL(file);
|
||||||
restOfURL.ToLowerCase();
|
|
||||||
|
|
||||||
// Find the second slash.
|
// Find the second slash.
|
||||||
nsAutoString providerType("content");
|
nsAutoString providerType("content");
|
||||||
nsAutoString path("");
|
nsAutoString path("");
|
||||||
|
|
|
@ -227,8 +227,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
nsAutoString hostStr(host);
|
nsAutoString hostStr(host);
|
||||||
hostStr.ToLowerCase();
|
|
||||||
|
|
||||||
// Construct a chrome URL and use it to look up a resource.
|
// Construct a chrome URL and use it to look up a resource.
|
||||||
nsAutoString windowType = nsAutoString("chrome://") + hostStr + "/";
|
nsAutoString windowType = nsAutoString("chrome://") + hostStr + "/";
|
||||||
|
|
||||||
|
@ -236,8 +235,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
|
||||||
const char* file;
|
const char* file;
|
||||||
aChromeURL->GetFile(&file);
|
aChromeURL->GetFile(&file);
|
||||||
nsAutoString restOfURL(file);
|
nsAutoString restOfURL(file);
|
||||||
restOfURL.ToLowerCase();
|
|
||||||
|
|
||||||
// Find the second slash.
|
// Find the second slash.
|
||||||
nsAutoString providerType("content");
|
nsAutoString providerType("content");
|
||||||
nsAutoString path("");
|
nsAutoString path("");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче