Fix race-condition crash on leaving pages using Indexed DB
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Thu, 13 Nov 2014 16:39:13 +0000 (17:39 +0100)
committerAllan Sandfeld Jensen <allan.jensen@digia.com>
Wed, 19 Nov 2014 09:17:55 +0000 (10:17 +0100)
commitc04b196b89fd9aff100e600dfa142d6a70b31647
tree95f3f7c12b0c11a33222964af96b1de40338dc2a
parent5f531fe25cbb017a3bc8ea592acaffbae81052e9
Fix race-condition crash on leaving pages using Indexed DB

ScriptExecutionContext does not allow the list of active DOM objects
to change while it is iterating over it. Since the IDB transaction
backend implementations holds several active DOM objects it should
not delete itself while aborting.

Change-Id: Icd2f5b5a3f1957461b9a253d1005896bb2461466
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp
Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.h