fix for bug 12493 - layout should canonicalize urls before asking global history for visited status

r=radha, sr=darin
This commit is contained in:
alecf@netscape.com
2002-08-06 23:51:42 +00:00
parent 928ef2d8bc
commit d04e2b3871
11 changed files with 68 additions and 61 deletions
+2 -2
View File
@@ -2356,7 +2356,7 @@ nsDocShell::LoadURI(const PRUnichar * aURI,
{
nsCOMPtr<nsIURI> uri;
nsresult rv = CreateFixupURI(aURI, getter_AddRefs(uri));
nsresult rv = CreateFixupURI(nsDependentString(aURI), getter_AddRefs(uri));
if (NS_ERROR_UNKNOWN_PROTOCOL == rv ||
NS_ERROR_MALFORMED_URI == rv) {
@@ -4924,7 +4924,7 @@ nsDocShell::InternalLoad(nsIURI * aURI,
}
NS_IMETHODIMP
nsDocShell::CreateFixupURI(const PRUnichar * aStringURI, nsIURI ** aURI)
nsDocShell::CreateFixupURI(const nsAString& aStringURI, nsIURI ** aURI)
{
*aURI = nsnull;
nsAutoString uriString(aStringURI);