Crashes under IDBDatabase::closeConnection
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Apr 2015 17:07:20 +0000 (17:07 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Apr 2015 17:07:20 +0000 (17:07 +0000)
commite215b6ad71f4a2edd14b0169b8441f82db4c3307
tree3ebd761f013e8e80d3eca35ccf773b8c86784254
parent081728b0025afcde9f2a1d0f9fef3f613c03adcc
Crashes under IDBDatabase::closeConnection
https://bugs.webkit.org/show_bug.cgi?id=141745

Reviewed by Alexey Proskuryakov.

* Modules/indexeddb/IDBDatabase.cpp:
(WebCore::IDBDatabase::~IDBDatabase): Do the work of close/closeConnection without
actually calling those functions.
(WebCore::IDBDatabase::closeConnection): Protect the database so it's not destroyed
in the middle of this function's execution.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/IDBDatabase.cpp