Skip to content

Commit 5c00423

Browse files
committed
Delete web storage including dom when fire selected
1 parent df242ad commit 5c00423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/duckduckgo/app/global/view/FireDialog.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ import android.content.Context
2020
import android.support.design.widget.BottomSheetDialog
2121
import android.view.View
2222
import android.webkit.CookieManager
23+
import android.webkit.WebStorage
2324
import android.webkit.WebView
2425
import com.duckduckgo.app.browser.R
2526
import kotlinx.android.synthetic.main.sheet_fire_clear_data.*
2627

2728
class FireDialog(context: Context,
28-
private val cookieManager: CookieManager,
29-
clearStarted: (() -> Unit),
29+
private val cookieManager: CookieManager,
30+
clearStarted: (() -> Unit),
3031
clearComplete: (() -> Unit)) : BottomSheetDialog(context) {
3132

3233
init {
@@ -35,6 +36,7 @@ class FireDialog(context: Context,
3536
clearAllOption.setOnClickListener {
3637
clearStarted()
3738
clearCache()
39+
WebStorage.getInstance().deleteAllData()
3840
clearCookies(clearComplete)
3941
dismiss()
4042
}

0 commit comments

Comments
 (0)