summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Niesluchowski <m.niesluchow@samsung.com>2016-08-04 19:07:58 +0200
committerMarcin Niesluchowski <m.niesluchow@samsung.com>2016-08-04 19:10:28 +0200
commitaef0e50a3c7a6ef195687ccdcd1f2ddc66db9579 (patch)
tree0c5bc92acc5166ac8b53d5ca1e4751b853e338ae
parentfc9c6ccfac848d9804c3d443117355339c180038 (diff)
downloadbrowser-aef0e50a3c7a6ef195687ccdcd1f2ddc66db9579.tar.gz
browser-aef0e50a3c7a6ef195687ccdcd1f2ddc66db9579.tar.bz2
browser-aef0e50a3c7a6ef195687ccdcd1f2ddc66db9579.zip
Clear app cache data when clearing cache private data
[Issue] http://suprem.sec.samsung.net/jira/browse/TWF-1810 [Problem] Appcache data is not cleared when clearing cache. [Solution] Use ewk_context_application_cache_delete_all api. [Verify] 1. Go to www.spritecow.com 2. Turn off internet 3.a. Enter |Settings| -> Enter |Delete Web Browsing Data| -> Select |Cache| -> Click |Delete Selected Data| or 3.b. Enter |Settings| -> Enter |Reset Browser| -> Click |Reset Browser| 4. Go to www.spritecow.com (internet still off) Site should not load. Change-Id: Ibd667a33981987fdf655c268fd477f62f0f26b1a Signed-off-by: Marcin Niesluchowski <m.niesluchow@samsung.com>
-rwxr-xr-xservices/WebEngineService/WebView.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/WebEngineService/WebView.cpp b/services/WebEngineService/WebView.cpp
index 681f7d93..f3814871 100755
--- a/services/WebEngineService/WebView.cpp
+++ b/services/WebEngineService/WebView.cpp
@@ -1552,8 +1552,10 @@ void WebView::clearCache()
{
BROWSER_LOGD("Clearing cache");
M_ASSERT(m_ewkContext);
- if (m_ewkContext)
+ if (m_ewkContext) {
ewk_context_cache_clear(m_ewkContext);
+ ewk_context_application_cache_delete_all(m_ewkContext);
+ }
}
void WebView::clearCookies()
@@ -1572,6 +1574,7 @@ void WebView::clearPrivateData()
ewk_context_cache_clear(m_ewkContext);
ewk_context_web_storage_delete_all(m_ewkContext);
ewk_cookie_manager_cookies_clear(ewk_context_cookie_manager_get(m_ewkContext));
+ ewk_context_application_cache_delete_all(m_ewkContext);
}
}