Skip to content

Commit ff7eb65

Browse files
authored
Add dom storage to fix ebay search box
1 parent 06c25b2 commit ff7eb65

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

app/src/main/java/com/duckduckgo/app/browser/BrowserActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,25 @@ 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

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
}

0 commit comments

Comments
 (0)