gecko-dev/mobile
Jan Henning c2c425bc88 Bug 1320550 - Part 2 - Clear closed tabs when max_tabs_undo is set to 0. r=sebastian
Currently, we stop updating closed tabs if max_tabs_undo is set to 0, however we don't clear that data and carry it around indefinitely unless the user clears the browser history.

This means that when closing a tab, we still show the "Undo close tab" snackbar, however with its contents referring to the last tab the user closed before setting browser.sessionstore.max_tabs_undo to 0.

With this patch, we clear all closed tabs (and don't reload them from disc on startup) if max_tabs_undo is 0, which also stops the snackbar from showing after closing a tab.

MozReview-Commit-ID: PEtminpW4B

--HG--
extra : rebase_source : 7c8039db1d1d7c5bc127cdc11fbc0a1387694ef9
2016-11-27 16:59:53 +01:00
..
android Bug 1320550 - Part 2 - Clear closed tabs when max_tabs_undo is set to 0. r=sebastian 2016-11-27 16:59:53 +01:00
locales Bug 1285281 - Update Qwant icon to our guidelines. r=florian 2016-07-18 13:57:59 -05:00