Bug 1003091 - HTTP cache v2: Remove temporary fix in CacheFileContextEvictor::GetContextFile() due to CacheFileUtils::ParseKey() limitation, r=honzab

This commit is contained in:
Michal Novotny 2014-05-05 15:04:09 +02:00
parent f2cd90aa43
commit 64dcad7bee

View File

@ -404,12 +404,6 @@ CacheFileContextEvictor::GetContextFile(nsILoadContextInfo *aLoadContextInfo,
nsAutoCString keyPrefix;
CacheFileUtils::AppendKeyPrefix(aLoadContextInfo, keyPrefix);
// TODO: This hack is needed because current CacheFileUtils::ParseKey() can
// parse only the whole key and not just the key prefix generated by
// CacheFileUtils::CreateKeyPrefix(). This should be removed once bug #968593
// is fixed.
keyPrefix.Append(":foo");
nsAutoCString data64;
rv = Base64Encode(keyPrefix, data64);
if (NS_WARN_IF(NS_FAILED(rv))) {