Firefox点击“Reopen Closed Tab”未恢复最近关闭标签而是旧标签的修复方案咨询
Hey there, let's tackle this frustrating tab recovery issue you're facing with Firefox ESR on Debian. Based on the details you shared—like the problem only popping up in regular windows (not Private Browsing), extensions already disabled, and restarts not helping—here are targeted troubleshooting steps to try:
Test with a fresh Firefox profile
Corrupted profile data often causes odd behavior like this. To rule this out:- Close all Firefox windows completely
- Open your terminal and run
firefox -P - In the profile manager, create a new temporary profile, then launch Firefox with it
- Close a tab and try using "Reopen Closed Tab"
If this works normally, your original profile's session data is likely damaged.
Clear corrupted session files
If the fresh profile works, fix your original profile by cleaning up broken session data:- Close Firefox entirely
- Open
about:supportbriefly to copy the path listed under "Profile Folder", then close Firefox again - In your file manager, navigate to that profile folder
- Delete the file
sessionstore.jsonlz4and all files inside thesessionstore-backupsfolder - Restart Firefox and test the tab recovery feature again
Reset session startup settings
Tweaking startup settings can sometimes reset glitched session states:- Go to
about:preferences(Firefox Settings) - Under the "General" tab, find the "When Firefox starts" section
- Temporarily switch the option to "Show a blank page", restart Firefox, then switch it back to your preferred setting (like "Show my windows and tabs from last time")
- Check if tab recovery works correctly now
- Go to
Update Firefox ESR to the latest version
Your current version is 102.12.0esr—Debian's repositories might have a newer ESR release that fixes this bug. Run these commands in your terminal to update:sudo apt update && sudo apt upgrade firefox-esrAfter updating, restart Firefox and see if the issue is resolved
Since you confirmed Private Browsing works fine, this narrows the problem down to corrupted session data in your regular profile, so the first two steps are the most likely to fix it. Let me know if any of these work for you!
备注:内容来源于stack exchange,提问作者Chris Henry

