Revisiones de Undo Close Tab
Undo Close Tab por Manuel Reimer
Respuesta de Manuel Reimer
Respuesta del desarrollador
publicado el hace 6 añosActually you are the first one actually noticing this. The closed tab history is only kept for up to the *last* session but if you tend to close Firefox pretty often this, of course, may be a problem.
The reason for this is that I can't just rely on the Firefox built in sessions API and its closed tab history. If I do so, then, after some restarts, you will run into a bug that causes random tabs or even windows to restore as the internal IDs get reused which causes duplicated IDs. See here: https://bugzilla.mozilla.org/show_bug.cgi?id=1538119
To work around this problem, I move the Firefox internal closed tab history into a list in my Add-on to clear it. From this point I use a combination of my internal list (for tabs from the last session) and the Firefox built-in list (for tabs closed since browser start). This way I can be sure that no duplicated IDs will exist at any time and always the expected tabs or windows get restored. The only downside is that my internal list does not survive a browser restart. I could save it into storage but this could be a potential privacy problem for people who don't use session restore (and before you ask: Mozilla does not tell Add-ons about the session restore enabled status).
So currently with the existing bugs there are only two options:
a) Accept the small downside of only having last closed tabs for up to the last browser session
b) Randomly restore stuff you don't expect.
As most people don't even remember that they had interesting tabs open for more than one session into the past and random restores can be really annoying, I decided to go with a)
The reason for this is that I can't just rely on the Firefox built in sessions API and its closed tab history. If I do so, then, after some restarts, you will run into a bug that causes random tabs or even windows to restore as the internal IDs get reused which causes duplicated IDs. See here: https://bugzilla.mozilla.org/show_bug.cgi?id=1538119
To work around this problem, I move the Firefox internal closed tab history into a list in my Add-on to clear it. From this point I use a combination of my internal list (for tabs from the last session) and the Firefox built-in list (for tabs closed since browser start). This way I can be sure that no duplicated IDs will exist at any time and always the expected tabs or windows get restored. The only downside is that my internal list does not survive a browser restart. I could save it into storage but this could be a potential privacy problem for people who don't use session restore (and before you ask: Mozilla does not tell Add-ons about the session restore enabled status).
So currently with the existing bugs there are only two options:
a) Accept the small downside of only having last closed tabs for up to the last browser session
b) Randomly restore stuff you don't expect.
As most people don't even remember that they had interesting tabs open for more than one session into the past and random restores can be really annoying, I decided to go with a)
591 revisiones
- Se valoró con 5 de 5por Zach, hace 23 días
- Se valoró con 5 de 5por pellk, hace un mes
- Se valoró con 1 de 5por Александр, hace un mes
- Se valoró con 5 de 5por Strømfeldt, hace 2 meses
- Se valoró con 5 de 5por mozjurmo, hace 2 meses
- Se valoró con 5 de 5por harl windwolf, hace 3 mesesExtremely convenient and straight forward extension.
- Se valoró con 1 de 5por Tienes14ActivaCam, hace 3 meses
- Se valoró con 5 de 5por Usuario de Firefox 18313697, hace 5 meses
- Se valoró con 5 de 5por Deo, hace 5 meses
- Se valoró con 5 de 5por theredwolf, hace 5 meses
- Se valoró con 5 de 5por Usuario de Firefox 19763320, hace 6 meses
- Se valoró con 5 de 5por R.M., hace 7 mesesReally helpful and a must-have extension in my eyes - I use it all the time and can't imagine using a browser without it now.
- Se valoró con 5 de 5por ArtchibalD, hace 7 meses
- Se valoró con 5 de 5por Sara, hace 7 mesesThis extension is necessary to using any browser. It has saved me hundreds of times in the past year.
- Se valoró con 5 de 5por Latra404, hace 8 meses
- Se valoró con 5 de 5por BeLuna, hace 10 mesesSollte endlich mal Standard von Firefox sein. Ich empfehle den Kontexteintrag für den Tab standardmäßig zu aktivieren, dafür das symbol in der Taskbar nicht standardmä´ßig zu aktivieren. (pin to adressbar by default: no) Da man das symbol selber eigentlich nicht braucht, wir brauchen nicht endlos viele Knöpfe, ein Rechtsklick reicht ;)
- Se valoró con 5 de 5por okup, hace un año
- Se valoró con 5 de 5por AntBee, hace un año
- Se valoró con 4 de 5por 阳熙来, hace un año
- Se valoró con 5 de 5por 囶 ., hace un añoLM22.1 a Must , especially when you have double right click to close Tab on the Window. for accidental closure of a Tab
- Se valoró con 5 de 5por Usuario de Firefox 15037318, hace un año
- Se valoró con 5 de 5por Raginmond, hace un año
- Se valoró con 5 de 5por Aldunn, hace un añoThis Add-on makes navigating the web so much easier. Thank you!