Fixes bug 43191 "frameset targets not selecting from cached frame" r=gagan, sr=waterson.

This commit is contained in:
darin%netscape.com 2001-04-13 07:30:27 +00:00
parent 857e11c362
commit 83c07390f7

View File

@ -889,7 +889,12 @@ nsHTTPChannel::GenerateCacheKey(nsAWritableCString &cacheKey)
cacheKey.Append(buf);
cacheKey.Append("&url=");
}
cacheKey.Append(mRequest->Spec());
// Strip any trailing #ref from the URL before using it as the key
char *p = PL_strchr(mRequest->Spec(), '#');
if (p)
cacheKey.Append(mRequest->Spec(), p - mRequest->Spec());
else
cacheKey.Append(mRequest->Spec());
return NS_OK;
}