Skip to content
  • commit-queue@webkit.org's avatar
    2011-03-19 Anton D'Auria <adauria@apple.com> · bad43c06
    commit-queue@webkit.org authored
            Reviewed by Alexey Proskuryakov.
    
            ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
            https://bugs.webkit.org/show_bug.cgi?id=56415
    
            This test creates an Application Cache for the DRT origin, deletes it for the origin,
            and verifies that the Application Cache has obsolete status.
    
            * http/tests/appcache/origin-delete-expected.txt: Added.
            * http/tests/appcache/origin-delete.html: Added.
            * http/tests/appcache/resources/origin-delete-iframe.html: Added.
            * http/tests/appcache/resources/origin-delete-iframe.manifest: Added.
            * platform/chromium/test_expectations.txt:
            * platform/gtk/Skipped:
            * platform/qt/Skipped:
    2011-03-19  Anton D'Auria  <adauria@apple.com>
    
            Reviewed by Alexey Proskuryakov.
    
            ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
            https://bugs.webkit.org/show_bug.cgi?id=56415
    
            To delete all Application Cache for an origin, we must obsolete all
            in-memory cache groups for that origin. If a cache group isn't in memory,
            then it must be deleted from disk. The previous implementation correctly
            removed on-disk cache groups, but did not mark in-memory cache groups as obsolete.
            This caused an assertion failure in ApplicationCacheStorage::cacheGroupDestroyed()
            when the DocumentLoader was destroyed.
    
            Test: http/tests/appcache/origin-delete.html
    
            * WebCore.exp.in:
            * WebCore.xcodeproj/project.pbxproj:
            * loader/appcache/ApplicationCache.cpp:
            (WebCore::ApplicationCache::clearStorageID):
            (WebCore::ApplicationCache::deleteCacheForOrigin):
            * loader/appcache/ApplicationCache.h:
            * loader/appcache/ApplicationCacheStorage.cpp:
            (WebCore::ApplicationCacheStorage::findInMemoryCacheGroup):
            * loader/appcache/ApplicationCacheStorage.h:
    2011-03-19  Anton D'Auria  <adauria@apple.com>
    
            Reviewed by Alexey Proskuryakov.
    
            ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
            https://bugs.webkit.org/show_bug.cgi?id=56415
    
            Use new ApplicationCache API to delete all cache for an origin.
    
            * WebCoreSupport/WebApplicationCache.h:
            * WebCoreSupport/WebApplicationCache.mm:
            (+[WebApplicationCache deleteOrigin:]):
    2011-03-19  Anton D'Auria  <adauria@apple.com>
    
            Reviewed by Alexey Proskuryakov.
    
            ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
            https://bugs.webkit.org/show_bug.cgi?id=56415
    
            * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp: calling ApplicationCacheGroup::deleteCacheGroupsForOrigin
            instead of ApplicationCacheStorage::deleteEntriesForOrigin.
            (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
    2011-03-19  Anton D'Auria  <adauria@apple.com>
    
            Reviewed by Alexey Proskuryakov.
    
            ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
            https://bugs.webkit.org/show_bug.cgi?id=56415
    
            * DumpRenderTree/LayoutTestController.cpp:
            (clearApplicationCacheForOriginCallback):
            (LayoutTestController::staticFunctions):
            * DumpRenderTree/LayoutTestController.h:
            * DumpRenderTree/chromium/LayoutTestController.cpp: Adding stubs.
            (LayoutTestController::LayoutTestController):
            (LayoutTestController::clearAllApplicationCaches):
            (LayoutTestController::clearApplicationCacheForOrigin):
            * DumpRenderTree/chromium/LayoutTestController.h:
            * DumpRenderTree/mac/LayoutTestControllerMac.mm: Adding stub.
            (LayoutTestController::clearApplicationCacheForOrigin):
            * DumpRenderTree/qt/LayoutTestControllerQt.cpp: Adding stub.
            (LayoutTestController::clearApplicationCacheForOrigin):
            * DumpRenderTree/qt/LayoutTestControllerQt.h:
            * DumpRenderTree/win/LayoutTestControllerWin.cpp: Adding stub.
            (LayoutTestController::clearApplicationCacheForOrigin):
            * DumpRenderTree/wx/LayoutTestControllerWx.cpp: Adding stub.
            (LayoutTestController::clearApplicationCacheForOrigin):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bad43c06