mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/20367 - Fixes removeAllTabs adding to recently closed
`removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
This commit is contained in:
parent
9351cda82e
commit
8541d3f449
@ -39,7 +39,7 @@ class DefaultDeleteBrowsingDataController(
|
||||
|
||||
override suspend fun deleteTabs() {
|
||||
withContext(coroutineContext) {
|
||||
removeAllTabs.invoke()
|
||||
removeAllTabs.invoke(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ class DefaultDeleteBrowsingDataControllerTest {
|
||||
controller.deleteTabs()
|
||||
|
||||
verify {
|
||||
removeAllTabs.invoke()
|
||||
removeAllTabs.invoke(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ class DeleteAndQuitTest {
|
||||
|
||||
verifyOrder {
|
||||
snackbar.show()
|
||||
removeAllTabsUseCases.invoke()
|
||||
removeAllTabsUseCases.invoke(false)
|
||||
activity.finishAndRemoveTask()
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ class CloseOnLastTabBindingTest {
|
||||
|
||||
binding.start()
|
||||
|
||||
browserStore.dispatch(TabListAction.RemoveAllTabsAction)
|
||||
browserStore.dispatch(TabListAction.RemoveAllTabsAction())
|
||||
|
||||
browserStore.waitUntilIdle()
|
||||
|
||||
|
@ -135,7 +135,7 @@ class TelemetryMiddlewareTest {
|
||||
assertEquals(2, settings.openTabsCount)
|
||||
verify(exactly = 1) { metrics.track(Event.HaveOpenTabs) }
|
||||
|
||||
store.dispatch(TabListAction.RemoveAllTabsAction).joinBlocking()
|
||||
store.dispatch(TabListAction.RemoveAllTabsAction()).joinBlocking()
|
||||
assertEquals(0, settings.openTabsCount)
|
||||
verify(exactly = 1) { metrics.track(Event.HaveNoOpenTabs) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user