[IndexedDB] Prevent reentry during context destruction
The IndexedDBOriginState map is iterated on context destruction, and each state is ForceClose()'ed. However, calling this: * Requires that a handle is held, so ForceClose doesn't operate on a destructed state, and * Can cause the OriginState to destruct itself. To avoid this, all of the RemoveOriginState callbacks are bound with a specific weak factory that can be invalidated in order to call ForceClose on all of the OriginState, which are then manually deleted. TBR: pwnall@chromium.org Bug: 966366,966267 Change-Id: I2ba2b9e6e10d34172ce38a934cafb0e9e341c05f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627268Reviewed-by:Daniel Murphy <dmurph@chromium.org> Commit-Queue: Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#662653}
Showing
Please register or sign in to comment