Bug 1095281 - Open entries from a chosen appcache as read-only, r=michal

This commit is contained in:
Honza Bambas
2014-11-19 18:46:10 +01:00
parent c6894d9d9d
commit 086174bbf9

View File

@@ -69,6 +69,11 @@ NS_IMETHODIMP CacheStorage::AsyncOpenURI(nsIURI *aURI,
if (LookupAppCache()) {
rv = ChooseApplicationCache(noRefURI, getter_AddRefs(appCache));
NS_ENSURE_SUCCESS(rv, rv);
if (appCache) {
// From a chosen appcache open only as readonly
aFlags &= ~nsICacheStorage::OPEN_TRUNCATE;
}
}
if (appCache) {