Changeset 198124 in webkit


Ignore:
Timestamp:
Mar 14, 2016 6:36:48 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Reimplement webkit_web_context_clear_cache functionality.
https://bugs.webkit.org/show_bug.cgi?id=146041

Reviewed by Michael Catanzaro.

  • UIProcess/API/gtk/WebKitWebContext.cpp:

(webkit_web_context_clear_cache):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r198098 r198124  
     12016-03-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Reimplement webkit_web_context_clear_cache functionality.
     4        https://bugs.webkit.org/show_bug.cgi?id=146041
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * UIProcess/API/gtk/WebKitWebContext.cpp:
     9        (webkit_web_context_clear_cache):
     10
    1112016-03-14  Jeremy Huddleston Sequoia  <jeremyhu@apple.com>
    212
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp

    r196223 r198124  
    551551    g_return_if_fail(WEBKIT_IS_WEB_CONTEXT(context));
    552552
    553     // FIXME: https://bugs.webkit.org/show_bug.cgi?id=146041
    554     // context->priv->processPool->supplement<WebResourceCacheManagerProxy>()->clearCacheForAllOrigins(AllResourceCaches);
     553    auto& websiteDataStore = webkitWebsiteDataManagerGetDataStore(context->priv->websiteDataManager.get()).websiteDataStore();
     554    websiteDataStore.removeData(static_cast<WebsiteDataTypes>(WebsiteDataTypes::WebsiteDataTypeMemoryCache | WebsiteDataTypes::WebsiteDataTypeDiskCache),
     555        std::chrono::system_clock::time_point::min(), [] { });
    555556}
    556557
Note: See TracChangeset for help on using the changeset viewer.