mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
Bug 1475701 - Save Page As doesn't begin MP3 download while tab is open, r=valentin
We need to close the cache entry if opening output stream for writing/appending data failed, so the entry isn't blocked for other requests.
This commit is contained in:
parent
25b5f10ae3
commit
38f29ba537
@ -5421,6 +5421,7 @@ nsHttpChannel::InstallCacheListener(int64_t offset)
|
|||||||
}
|
}
|
||||||
if (rv == NS_ERROR_FILE_TOO_BIG) {
|
if (rv == NS_ERROR_FILE_TOO_BIG) {
|
||||||
LOG((" entry would exceed max allowed size, not writing it [channel=%p]", this));
|
LOG((" entry would exceed max allowed size, not writing it [channel=%p]", this));
|
||||||
|
CloseCacheEntry(false);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
Loading…
Reference in New Issue
Block a user