Revisiones de Undo Close Tab
Undo Close Tab por Manuel Reimer
Respuesta de Manuel Reimer
Respuesta del desarrollador
publicado el hace 4 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)
509 revisiones
- Se valoró con 5 de 5por Usuario de Firefox 18441348, el hace 2 días
- Se valoró con 5 de 5por Usuario de Firefox 17717340, el hace un mes
- Se valoró con 5 de 5por 水貂, el hace un mesAlways working well. Absolutely save my day and never fail me.
Thank you.
永远运行良好的扩展,需要它的时候从未缺席,感谢它无数次拯救我的手抖。 - Se valoró con 5 de 5por scmstr, el hace 2 mesesRating: Great. The addon didn't ask for dark-behavior permissions and seems to do what it describes with footprint/impact. I haven't used it for more than 10 minutes yet though.
Suggestions:
- timestamps on the closed tab list
- more than 25 closed tabs in list
- adjustable char limit for tabs list
- option for checking multiple tabs at once from list
- default the option for tab-bar context menu to ON
- have your icon have a color, and simplify it a little, maybe to just the standard "undo" shape/arrow
- make icon be dark-mode friendly
Note to developer (Manuel Reimer): Good job, and thank you.Respuesta del desarrollador
publicado el hace 2 mesesThanks for all those suggestions, but they would have been better placed on GitHub as discussion on each individual one would have been possible.
- Timestamps: Most users don't care about this and a "timestamp" actually consumes A LOT of space (it's not just the time but the date somehow has to fit, too).
- More than 25 items is not possible. Please read my point about this on my Add-on description. This is something Mozilla has to fix.
- Adjustable char limit is difficult as texts are variable width and I won't go into the rabbit hole of "char width calculation". Most users want to see "as much as possible" anyway.
- Option for multiple tabs is not possible with Mozilla API. You'll have to open the menu multiple times to get this. I'm limited to what Mozilla allows to Add-ons.
- Default for tab-bar context menu to "ON" is a good idea. I'll put that on my list for the next update.
- The icon won't change. Sorry but it has been refined several times and whatever you do you'll always have a few users that don't like it.
- The icon should be dark mode friendly at least on the toolbar. The icon in the context menu actually can not be changed. Mozilla only allows icons to be changed in sub menus and not on top level. And my default icon is the icon for light mode as that used to be the most used mode when the Add-on was created. - Se valoró con 5 de 5por 大能猫, el hace 2 meses
- Se valoró con 5 de 5por Usuario de Firefox 14018447, el hace 2 meses
- Se valoró con 1 de 5por Rikis, el hace 2 meses
- Se valoró con 5 de 5por Usuario de Firefox 17463149, el hace 2 meses
- Se valoró con 5 de 5por Usuario de Firefox 17966179, el hace 3 mesesシンプルだがほしい機能そのものズバリ
ツールバーアイコンもセンスがあっていい - Se valoró con 5 de 5por Renega, el hace 3 meses
- Se valoró con 5 de 5por Mohmed, el hace 3 meses
- Se valoró con 5 de 5por vertigont17, el hace 3 meses
- Se valoró con 5 de 5por Dionysius Miller, el hace 3 mesesDoes exactly what it says it does plus some optional functionality. Perfect for research or time-sensitive activities where a lost tab is a huge hassle.
- Se valoró con 5 de 5por Usuario de Firefox 17590282, el hace 4 meses
- Se valoró con 5 de 5por Amanda, el hace 4 mesesL.O.L. This gets an instant 5-star from me!!
Quite ironically, I accidentally closed this tab immediately after installing this extension and was SO HAPPY to have this super-convenient little button right there in my toolbar!!!
(...rather than spending 5x longer trying to find FF's built-in version in my context menu, and I never remember my mouse gesture the first few tries...)
Also the mini recent history drop-down is an excellent bonus!
Kudos, and THANK YOU!!! - Se valoró con 1 de 5por Usuario de Firefox 16366541, el hace 4 mesesvery patiently awaiting for this extension to work w/ Ff Android. installs, but goes totally deadstick - no last tab restore, no Settings & totally blank tab history.
Respuesta del desarrollador
publicado el hace 4 mesesIt does not advertise to be Android compatible and I intentionally disabled everything Android related in my Add-on listing. If you still got it offered for Android, please open an Issue on GitHub with a screenshot so I can file a bug for Mozilla.
The sessions API is not available on Android and "Undo Closed Tab" heavily depends on it. So there is no way to make it Android compatible at this point: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/sessions#browser_compatibility - Se valoró con 5 de 5por macmoebius, el hace 4 meses
- Se valoró con 1 de 5por Ben, el hace 4 meses
- Se valoró con 5 de 5por Chrys, el hace 4 meses
- Se valoró con 5 de 5por Usuario de Firefox 16970122, el hace 4 meses