| Index: Source/modules/indexeddb/IDBDatabase.cpp
|
| diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp
|
| index fb9989817d0871cdade91e5254caaadc77731bdc..99efdc7b66f98ab2ab86c14a9e032fd3a0a3b968 100644
|
| --- a/Source/modules/indexeddb/IDBDatabase.cpp
|
| +++ b/Source/modules/indexeddb/IDBDatabase.cpp
|
| @@ -393,7 +393,7 @@ bool IDBDatabase::hasPendingActivity() const
|
| {
|
| // The script wrapper must not be collected before the object is closed or
|
| // we can't fire a "versionchange" event to let script manually close the connection.
|
| - return !m_closePending && !m_eventTargetData.eventListenerMap.isEmpty() && !m_contextStopped;
|
| + return !m_closePending && hasEventListeners() && !m_contextStopped;
|
| }
|
|
|
| void IDBDatabase::stop()
|
| @@ -414,14 +414,4 @@ ScriptExecutionContext* IDBDatabase::scriptExecutionContext() const
|
| return ActiveDOMObject::scriptExecutionContext();
|
| }
|
|
|
| -EventTargetData* IDBDatabase::eventTargetData()
|
| -{
|
| - return &m_eventTargetData;
|
| -}
|
| -
|
| -EventTargetData* IDBDatabase::ensureEventTargetData()
|
| -{
|
| - return &m_eventTargetData;
|
| -}
|
| -
|
| } // namespace WebCore
|
|
|