Delete AUTH_SESSIONS with COOKIES
parent
758f4c13ec
commit
4c2a7ac10e
|
@ -54,7 +54,12 @@ class DefaultDeleteBrowsingDataController(
|
||||||
|
|
||||||
override suspend fun deleteCookies() {
|
override suspend fun deleteCookies() {
|
||||||
withContext(coroutineContext) {
|
withContext(coroutineContext) {
|
||||||
context.components.core.engine.clearData(Engine.BrowsingData.select(Engine.BrowsingData.COOKIES))
|
context.components.core.engine.clearData(
|
||||||
|
Engine.BrowsingData.select(
|
||||||
|
Engine.BrowsingData.COOKIES,
|
||||||
|
Engine.BrowsingData.AUTH_SESSIONS
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,12 @@ class DefaultDeleteBrowsingDataControllerTest {
|
||||||
controller.deleteCookies()
|
controller.deleteCookies()
|
||||||
|
|
||||||
verify {
|
verify {
|
||||||
context.components.core.engine.clearData(Engine.BrowsingData.select(Engine.BrowsingData.COOKIES))
|
context.components.core.engine.clearData(
|
||||||
|
Engine.BrowsingData.select(
|
||||||
|
Engine.BrowsingData.COOKIES,
|
||||||
|
Engine.BrowsingData.AUTH_SESSIONS
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue