Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Recently closed tabs not cleared when using Delete browsing history on exit #20367

Closed
plwt opened this issue Jul 14, 2021 · 4 comments
Closed
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Privacy&Security Feature:RecentTabs Recent tabs on the homescreen Feature:Settings

Comments

@plwt
Copy link

plwt commented Jul 14, 2021

Steps to reproduce

  1. Have everything apart from "Cookies and "Site permissions" selected in the "Delete browsing history on exit" menu
  2. Visit some websites
  3. Use the exit option to exit Firefox for Android
  4. Open Firefox for Android and select the History option in the menu

Expected behaviour

No recently closed tabs are available.

Actual behaviour

Recently closed tabs are retained.

Device name

Motorola Moto E4

Android version

Android 8

Firefox release type

Firefox

Firefox version

89.1.1

Device logs

No response

Additional information

Also reported by a user to SUMO in https://support.mozilla.org/en-US/questions/1343242.

┆Issue is synchronized with this Jira Task

@plwt plwt added needs:triage Issue needs triage 🐞 bug Crashes, Something isn't working, .. labels Jul 14, 2021
@kbrosnan kbrosnan changed the title [Bug]: Browsing history retained when Delete "browsing data on quit" is selected. Recentely closed tabs not cleared when using Delete browsing history on exit Jul 14, 2021
@plwt plwt changed the title Recentely closed tabs not cleared when using Delete browsing history on exit Recently closed tabs not cleared when using Delete browsing history on exit Jul 14, 2021
@amedyne amedyne added this to Ready for Engineering (min-5 ; max-22) in Android Engineering Team Kanban board via automation Jul 14, 2021
@codrut-topliceanu codrut-topliceanu self-assigned this Jul 15, 2021
@codrut-topliceanu codrut-topliceanu moved this from Ready for Engineering (min-5 ; max-22) to In Development (WIP limit - 15) in Android Engineering Team Kanban board Jul 15, 2021
@Amejia481
Copy link
Contributor

👋🏽
@codrut-topliceanu this look the same issue as #17986, lets coordinate efforts :)

It looks like when we delete tabs store.dispatch(TabListAction.RemoveAllTabsAction), they are getting added into the RecentlyClosedMiddleware as UndoAction.ClearRecoverableTabs see.

We should find a way to prevent that, maybe by adding some sort state to RemoveAllTabsAction to indicate these tabs are not recoverable, maybe:

data class RemoveAllTabsAction(val recoverable: Boolean = true) : TabListAction()

And preventing the UndoMiddleware from adding them and subsequently the RecentlyClosedMiddleware adding them to the db.

codrut-topliceanu pushed a commit to codrut-topliceanu/fenix that referenced this issue Jul 16, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
@codrut-topliceanu codrut-topliceanu moved this from In Development (WIP limit - 15) to Dev Complete (WIP limit - 5) in Android Engineering Team Kanban board Jul 16, 2021
@codrut-topliceanu
Copy link
Contributor

For QA:

  • Please be aware that the erroneous behavior from the original comment also happens when using Delete browsing data. The PRs will fix both bugs.
  • Also bug reproduces even with "Cookies and "Site permissions" selected.

codrut-topliceanu pushed a commit to codrut-topliceanu/fenix that referenced this issue Jul 19, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
Amejia481 pushed a commit to codrut-topliceanu/fenix that referenced this issue Jul 20, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
Amejia481 pushed a commit to codrut-topliceanu/fenix that referenced this issue Jul 20, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
mergify bot pushed a commit that referenced this issue Jul 20, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
@Amejia481 Amejia481 added the eng:qa:needed QA Needed label Jul 21, 2021
@Amejia481 Amejia481 moved this from Dev Complete (WIP limit - 5) to In Testing/QA in Android Engineering Team Kanban board Jul 21, 2021
@Amejia481
Copy link
Contributor

👋🏽
QA team the fix is on master, would you mind helping us to verify if the issue is fixed, thanks in advance :)

@sflorean
Copy link
Contributor

Verified as fixed on Nightly 7/21 following the steps provided.

Android Engineering Team Kanban board automation moved this from In Testing/QA to Done Jul 21, 2021
@sflorean sflorean added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Jul 21, 2021
mergify bot pushed a commit that referenced this issue Jul 26, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.

(cherry picked from commit 2040af6)
Amejia481 pushed a commit that referenced this issue Jul 26, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.

(cherry picked from commit 2040af6)
Amejia481 pushed a commit that referenced this issue Jul 28, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.

(cherry picked from commit 2040af6)
Amejia481 pushed a commit that referenced this issue Jul 28, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.

(cherry picked from commit 2040af6)
@mcarare mcarare added the Feature:RecentTabs Recent tabs on the homescreen label Aug 12, 2021
czlucius pushed a commit to czlucius/fenix that referenced this issue Aug 20, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
czlucius pushed a commit to czlucius/fenix that referenced this issue Aug 22, 2021
 `removeAllTabs` will now no longer allow `UndoMiddleware` from recovering the tabs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Privacy&Security Feature:RecentTabs Recent tabs on the homescreen Feature:Settings
Projects
No open projects
Development

No branches or pull requests

6 participants