Unreviewed, speculative fix for:
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Jan 2016 07:04:12 +0000 (07:04 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Jan 2016 07:04:12 +0000 (07:04 +0000)
Modern IDB: Some IDB tests crash in ~SQLiteIDBBackingStore
https://bugs.webkit.org/show_bug.cgi?id=153418

No new tests.

* Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
(WebCore::IDBServer::SQLiteIDBBackingStore::~SQLiteIDBBackingStore): Clear the global object
  before wiping out the VM.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195525 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp

index 486c49a..0f7ce0e 100644 (file)
@@ -1,3 +1,15 @@
+2016-01-24  Brady Eidson  <beidson@apple.com>
+
+        Unreviewed, speculative fix for:
+        Modern IDB: Some IDB tests crash in ~SQLiteIDBBackingStore
+        https://bugs.webkit.org/show_bug.cgi?id=153418
+
+        No new tests.
+
+        * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
+        (WebCore::IDBServer::SQLiteIDBBackingStore::~SQLiteIDBBackingStore): Clear the global object
+          before wiping out the VM.
+
 2016-01-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
 
         Reduce PassRefPtr uses in dom - 4
index 17f266d..b3db8a7 100644 (file)
@@ -121,6 +121,7 @@ SQLiteIDBBackingStore::~SQLiteIDBBackingStore()
 
     if (m_vm) {
         JSLockHolder locker(m_vm.get());
+        m_globalObject.clear();
         m_vm = nullptr;
     }
 }