summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebStorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebStorage.cpp')
-rw-r--r--WebKit/android/jni/WebStorage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebStorage.cpp b/WebKit/android/jni/WebStorage.cpp
index 37792f6..d374875 100644
--- a/WebKit/android/jni/WebStorage.cpp
+++ b/WebKit/android/jni/WebStorage.cpp
@@ -29,6 +29,7 @@
#include "JavaSharedClient.h"
#include "KURL.h"
+#include "PageGroup.h"
#include "WebCoreJni.h"
#include <JNIHelp.h>
@@ -130,6 +131,11 @@ static void DeleteAllData(JNIEnv* env, jobject obj)
{
WebCore::DatabaseTracker::tracker().deleteAllDatabases();
WebCore::cacheStorage().empty();
+ // FIXME: this is a workaround for eliminating any DOM Storage data (both
+ // session and local storage) as there is no functionality inside WebKit at the
+ // moment to do it. That functionality is a WIP in https://bugs.webkit.org/show_bug.cgi?id=51878
+ // and when that patch lands and we merge it, we should move towards that approach instead.
+ WebCore::PageGroup::clearDomStorage();
}
static void SetAppCacheMaximumSize(JNIEnv* env, jobject obj, unsigned long long size)