IndexedDB: Protect against use-after-free in ChainedBlobWriter.
This is a speculative fix for a heap user-after-free bug. Was unable
to verify using a Windows SyzyASan build. The theory is that if Abort()
was called before ChainedBlobWriterImpl::WriteNextFile() could set
waiting_for_callback_ then the ReportWriteCompletion() would never know
that it was aborted and attempt to use it's dangling raw pointer to a
deleted IndexedDBBackingStore instance.
Also in this change is the elimination of the redundant aborted_
Review URL: https://codereview.chromium.org/1060613002
1 file changed