Comments (3)
That's because of a bug in Firefox that isn't fixed for months. You can either have the built in menu work or an Add-on.
I have to use a workaround to make the API for closed tabs reliable. I copy the list in Firefox in my own memory and then clear it. This is to prevent IDs from duplicating.
But basically your issue is duplicating #79
Maybe we should move any discussion about this topic there.
from undoclosetab.
OK, actually I was a bit optimistic with "for months". It isn't fixed since around 5 years actually... 😞
https://bugzilla.mozilla.org/show_bug.cgi?id=1538119
I think I've explained the issue several times, now, but in a nutshell:
To access closed tabs, Mozilla uses an "ID" which is basically a rising counter starting with the browser start. When a new tab is closed, this counter is increased by one and added to the newly closed tab as its ID.
The problem with this: As soon as you restart the browser, the ID counter starts from zero, again. So now ID "1" could point to a tab of the previous session and the current session making it random which one you restore when clicking the "Restore Tab" button.
To work around this problem, I clear the Firefox internal list to force the IDs to actually be unique, as they now can only point to tabs from the current session.
So far I have not found any way to create a better workaround and it seems like the bug in Firefox does not really get much attention.
from undoclosetab.
Thank you for your reply.
I have indeed seen the bug that has been created 22nd of march 2019 and still has not been fixed. I've been a fan of Firefox since it was still called Phoenix/Firebird, but is seems it is declining nowadays, as it cannot keep up with Chromium-based browsers. I do not have a a lot faith that this bug will get fixed in the near future.
As I value my open tabs more than I value the convenience of opening a closed tab with a button instead of doing it via the context menu, I will unfortunately keep your extension disabled until Mozilla fixed the bug. It's a pity though, I really like your extension.
Thank you for your work. I hope to be able to use it once more in the near future.
from undoclosetab.
Related Issues (20)
- Updated translations for 'zh_CN': zh_CN
- [Feature request] Option for left-click to open the context menu HOT 1
- Firefox policies support HOT 13
- Add Support for Manage Extension Shortcuts to allow shortcut to activate an undo HOT 3
- Empty closed tabs list sometimes HOT 15
- wrong issue HOT 2
- List of recently closed tabs missing from right click menu HOT 1
- [New addon] Closed tab notifier HOT 3
- After each start, the list is empty HOT 6
- The “Web” icon in Undo Close Tab context menu is outdated HOT 1
- Right click sporadically stops working HOT 1
- in firefox 113 the toolbar button right click no longer works. HOT 2
- is there a different version of this extension for closing tab instead undo close tab?
- [Idea] Suggestions to change extension icon HOT 8
- [Idea] keyboard short for using undo close functionality HOT 1
- New translations for 'it': Italian (Italiano)
- Can't find Icon unduclosetab sinds firefox 120.01 HOT 3
- Use Proton folder icon for "More Entries" HOT 3
- Undo Close Tab button icon doesn't go shade pale when Firefox window is unfocused HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from undoclosetab.