Bug 1067568 - Intermittent test_filehandle_readonly_exceptions.html | Assertion count 4 is greater than expected (ASSERTION: We don't know anyting about this file handle?!: 'Error', file dom/filehandle/FileService.cpp, line 234); r=bent

This commit is contained in:
Jan Varga 2014-11-05 08:30:21 +01:00
parent 24b6f1a80d
commit 4d373d5e32

View File

@ -321,6 +321,11 @@ IDBMutableFile::Open(FileMode aMode, ErrorResult& aError)
return nullptr;
}
if (mInvalidated) {
aError.Throw(NS_ERROR_DOM_FILEHANDLE_NOT_ALLOWED_ERR);
return nullptr;
}
nsRefPtr<IDBFileHandle> fileHandle =
IDBFileHandle::Create(aMode, FileHandleBase::NORMAL, this);
if (!fileHandle) {