WebCore:
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Nov 2007 06:46:31 +0000 (06:46 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Nov 2007 06:46:31 +0000 (06:46 +0000)
commitb9b8bc2b01bb14b505b8dc0d12e005057614926b
treeb89ddf9c9b2b6ea447f3f7b5631290e197b75758
parent28404bb32ba4df8ed4a10eafc2ebbf55c10d09cb
WebCore:

        Reviewed by Adam

        http://bugs.webkit.org/show_bug.cgi?id=15976 - ASSERT/crash when SQLTransactionCallback throws an exception

        * storage/SQLTransaction.cpp:
        (WebCore::SQLTransaction::deliverTransactionCallback): Make a transaction error for the case where the
          SQLTransactionCallback fails
        (WebCore::SQLTransaction::deliverTransactionErrorCallback): Don't assert on the error callback, but null check it
          and make the commit/rollback decision accordingly

LayoutTests:

        Reviewed by Adam

        Fix for http://bugs.webkit.org/show_bug.cgi?id=15976

        * storage: Added - There will soon be an entire suite in here!
        * storage/transaction_callback_exception_crash-expected.txt: Added.
        * storage/transaction_callback_exception_crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/transaction_callback_exception_crash-expected.txt [new file with mode: 0644]
LayoutTests/storage/transaction_callback_exception_crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/storage/SQLTransaction.cpp