mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 623996 - Offline Application Cache Breaks with Iframe and Shared Empty Files, r=michal.novotny, a2.0=jst
This commit is contained in:
parent
45f051d06f
commit
32c0e9e64a
2
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
2
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
@ -1541,7 +1541,7 @@ nsOfflineCacheDevice::OpenInputStreamForEntry(nsCacheEntry *entry,
|
||||
|
||||
*result = nsnull;
|
||||
|
||||
NS_ENSURE_TRUE(offset < entry->DataSize(), NS_ERROR_INVALID_ARG);
|
||||
NS_ENSURE_TRUE(!offset || (offset < entry->DataSize()), NS_ERROR_INVALID_ARG);
|
||||
|
||||
// return an input stream to the entry's data file. the stream
|
||||
// may be read on a background thread.
|
||||
|
Loading…
Reference in New Issue
Block a user