From 64a6328c068af0e9b895940bd9ffa5b5b2c530f8 Mon Sep 17 00:00:00 2001 From: "jst%netscape.com" Date: Thu, 8 Jun 2000 13:58:02 +0000 Subject: [PATCH] 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 --- docshell/base/nsDocShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 925465964ce4..19d20a29e7d9 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -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 {