File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
app/src/main/java/com/duckduckgo/app Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ class BrowserActivity : DuckDuckGoActivity() {
260260
261261 webView.settings.apply {
262262 javaScriptEnabled = true
263+ domStorageEnabled = true
263264 loadWithOverviewMode = true
264265 useWideViewPort = true
265266 builtInZoomControls = true
Original file line number Diff line number Diff line change @@ -20,21 +20,25 @@ import android.content.Context
2020import android.support.design.widget.BottomSheetDialog
2121import android.view.View
2222import android.webkit.CookieManager
23+ import android.webkit.WebStorage
2324import android.webkit.WebView
2425import com.duckduckgo.app.browser.R
2526import kotlinx.android.synthetic.main.sheet_fire_clear_data.*
2627
27- class FireDialog (context : Context ,
28- private val cookieManager : CookieManager ,
29- clearStarted : (() -> Unit ),
30- clearComplete : (() -> Unit )) : BottomSheetDialog(context) {
28+ class FireDialog (
29+ context : Context ,
30+ private val cookieManager : CookieManager ,
31+ clearStarted : (() -> Unit ),
32+ clearComplete : (() -> Unit )
33+ ) : BottomSheetDialog(context) {
3134
3235 init {
3336 val contentView = View .inflate(getContext(), R .layout.sheet_fire_clear_data, null )
3437 setContentView(contentView)
3538 clearAllOption.setOnClickListener {
3639 clearStarted()
3740 clearCache()
41+ WebStorage .getInstance().deleteAllData()
3842 clearCookies(clearComplete)
3943 dismiss()
4044 }
You can’t perform that action at this time.
0 commit comments