mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Fixes bug 43191 "frameset targets not selecting from cached frame" r=gagan, sr=waterson.
This commit is contained in:
parent
857e11c362
commit
83c07390f7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user