Title: [209160] trunk/Source/WebCore
Revision
209160
Author
beid...@apple.com
Date
2016-11-30 15:53:23 -0800 (Wed, 30 Nov 2016)

Log Message

REGRESSION (r209144): API test IndexedDB.DeleteRecovery failing.
https://bugs.webkit.org/show_bug.cgi?id=165216

Rubberstamped by Tim Horton.

* Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
(WebCore::IDBServer::SQLiteIDBBackingStore::closeSQLiteDB): Change invalid ASSERT into a null check.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (209159 => 209160)


--- trunk/Source/WebCore/ChangeLog	2016-11-30 23:48:00 UTC (rev 209159)
+++ trunk/Source/WebCore/ChangeLog	2016-11-30 23:53:23 UTC (rev 209160)
@@ -1,3 +1,13 @@
+2016-11-30  Brady Eidson  <beid...@apple.com>
+
+        REGRESSION (r209144): API test IndexedDB.DeleteRecovery failing.
+        https://bugs.webkit.org/show_bug.cgi?id=165216
+
+        Rubberstamped by Tim Horton.
+
+        * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
+        (WebCore::IDBServer::SQLiteIDBBackingStore::closeSQLiteDB): Change invalid ASSERT into a null check.
+
 2016-11-30  Said Abou-Hallawa  <sabouhall...@apple.com>
 
         Add separate settings and preferences to enable/disable async decoding for large images and animated images

Modified: trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp (209159 => 209160)


--- trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp	2016-11-30 23:48:00 UTC (rev 209159)
+++ trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp	2016-11-30 23:53:23 UTC (rev 209160)
@@ -2388,12 +2388,12 @@
 
 void SQLiteIDBBackingStore::closeSQLiteDB()
 {
-    ASSERT(m_sqliteDB);
-
     for (size_t i = 0; i < static_cast<int>(SQL::Count); ++i)
         m_cachedStatements[i] = nullptr;
 
-    m_sqliteDB->close();
+    if (m_sqliteDB)
+        m_sqliteDB->close();
+
     m_sqliteDB = nullptr;
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to