Skip to content
  • jsbell@chromium.org's avatar
    IndexedDB: Ensure script wrappers can be collected after context is stopped · 1a377faf
    jsbell@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=112976
    
    Reviewed by Adam Barth.
    
    ActiveDOMObject::hasPendingActivity is called to see if script wrappers
    can be disposed of. Once the script execution context has stopped they
    should be free to go - include this in the checks.
    
    No new tests - suggestions welcome.
    
    * Modules/indexeddb/IDBDatabase.cpp:
    (WebCore::IDBDatabase::hasPendingActivity): Return false if stopped.
    (WebCore::IDBDatabase::stop): Don't bother calling empty super impl.
    * Modules/indexeddb/IDBRequest.cpp:
    (WebCore::IDBRequest::hasPendingActivity): Return false if stopped.
    (WebCore::IDBRequest::stop): Don't bother calling empty super impl.
    * Modules/indexeddb/IDBTransaction.cpp:
    (WebCore::IDBTransaction::hasPendingActivity): Return false if stopped.
    (WebCore::IDBTransaction::stop): Don't bother calling empty super impl.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1a377faf