mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1095281 - Open entries from a chosen appcache as read-only, r=michal
This commit is contained in:
parent
e2806ade25
commit
76cce7097f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user