Fixing nsbeta2+ bug 41718, the docshell did case sensitive string compares when it checked if the protocol of a URL was 'javascript', this broke upper and mixed cased javascript: URL's. r=shaver

git-svn-id: svn://10.0.0.236/trunk@71786 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2000-06-08 13:58:02 +00:00
parent a68276da49
commit bd7c8e82d3

View File

@@ -2627,7 +2627,7 @@ NS_IMETHODIMP nsDocShell::DoURILoad(nsIURI* aURI, nsIURI* aReferrerURI,
static const char kJavaScriptScheme[] = "javascript";
nsXPIDLCString scheme;
aURI->GetScheme(getter_Copies(scheme));
if (0 == PL_strncmp(NS_STATIC_CAST(const char*, scheme), kJavaScriptScheme, sizeof(kJavaScriptScheme) - 1)) {
if (0 == PL_strncasecmp(NS_STATIC_CAST(const char*, scheme), kJavaScriptScheme, sizeof(kJavaScriptScheme) - 1)) {
channel->SetOriginalURI(aReferrerURI ? aReferrerURI : aURI);
}
else {