зеркало из https://github.com/mozilla/pjs.git
Fixes bug 43191 "frameset targets not selecting from cached frame" r=gagan, sr=waterson.
This commit is contained in:
Родитель
7a426fac61
Коммит
e82b820f14
|
@ -889,6 +889,11 @@ nsHTTPChannel::GenerateCacheKey(nsAWritableCString &cacheKey)
|
|||
cacheKey.Append(buf);
|
||||
cacheKey.Append("&url=");
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче