Modern IDB: storage/indexeddb/delete-in-upgradeneeded-close-in-versionchange.html...
[WebKit-https.git] / Source / WebCore / Modules / indexeddb / client / IDBOpenDBRequestImpl.cpp
index 57c7a7af08a322294f10d2bdc6dbb64fb44129e1..4239d4c42a6a486b35333f2956bf145319c68fbb 100644 (file)
@@ -86,14 +86,15 @@ void IDBOpenDBRequest::fireSuccessAfterVersionChangeCommit()
     enqueueEvent(Event::create(eventNames().successEvent, false, false));
 }
 
-void IDBOpenDBRequest::fireErrorAfterVersionChangeAbort()
+void IDBOpenDBRequest::fireErrorAfterVersionChangeCompletion()
 {
-    LOG(IndexedDB, "IDBOpenDBRequest::fireErrorAfterVersionChangeAbort()");
+    LOG(IndexedDB, "IDBOpenDBRequest::fireErrorAfterVersionChangeCompletion()");
 
     ASSERT(hasPendingActivity());
 
     IDBError idbError(IDBDatabaseException::AbortError);
     m_domError = DOMError::create(idbError.name());
+    m_result = IDBAny::createUndefined();
 
     m_transaction->addRequest(*this);
     enqueueEvent(Event::create(eventNames().errorEvent, true, true));