rNeomy / tab-suspender

Automatically suspend (hibernate) inactive tabs to free up system resources; This project is discontinued in favor of https://add0n.com/tab-discard.html
http://add0n.com/tab-suspender.html
Mozilla Public License 2.0
112 stars 32 forks source link

tabs not being restored #87

Open darchon7 opened 6 years ago

darchon7 commented 6 years ago

tabs are not being restored back to the website and i get a blank page showing text like this:

New in Box LSI LSICVM02 LSI00418 CacheVault Kit 9361-8i 1GB | eBay moz-extension://5d5574a3-c731-4975-9596-a91035a1cba1/data/suspend/index.html?title=New%20in%20Box%20LSI%20LSICVM02%20LSI00418%20CacheVault%20Kit%209361-8i%201GB%20%7C%20eBay&url=https%3A//www.ebay.com/itm/New-in-Box-LSI-LSICVM02-LSI00418-CacheVault-Kit-9361-8i-1GB/282790186966%3Fhash%3Ditem41d79bcfd6%3Ag%3ARQoAAOSw9mpaRwvg&favicon=https%3A//www.ebay.com/favicon.ico

internalkernel commented 6 years ago

Same behavior here... and there's really no convenient way to get back to the site you were on. So, it just kind of leaves all your tabs in a broken state upon launch.

Update: After messing with this a bit, I found that a Session Manager plugin was causing a conflict; disabled that plugin and restoring works again.

irvinm commented 6 years ago

I had a similar situation caused by a different problem. In my case, my machine blue screened and when I got back into Firefox my profile had reset the UUIDs for my add-ons and my session restore for any suspended tab with "moz-extension://xxx..." would not even load as it was no longer pointing to Tab Suspender's UUID. I was able to find the new UUID (about:debugging) and was able to edit my session restore file (storage.js) to find & replace the old UUID with the new UUID and was able to now load my session and get the coffee cup suspended tab. However, when I clicked on the page, it would not restore but just bring me to the "new tab" page.

I looked into the code and found that the restore method is different for "Firefox" vs. "Other browsers". For Firefox, it simply issues a "back one page command" to load the previous page. On other browsers, it figures out the stored URL and then LOADS that page. Since I didn't have any "history", issuing "back" simply load the new tab page as that is what is initially created as each tab is loaded from the session restore. (Tab Session Manager)

The reason I tell this long story is that the way I solved my problem was to change the "user agent" Firefox used to anything other than the current Firefox string and "Tab Suspender" would think it was not Firefox and would then extract the URL from the stored page and load the page.

So, in the end I was able to successfully restore my session, click on the suspended tabs, active tabs were then dynamically loaded, and finally I was able to reset my user agent string.

sun-bear commented 6 years ago

I'm having a similar issue where a session restore manager (sometimes two) loads every time I restart firefox. Additionally, windows sometime add random new blank tabs, tabs will often be mixed around different than when I closed.

Is anyone else having this issue?

MrEngineer13 commented 6 years ago

I have this same issue when I restart my mac. Firefox restores active tabs to their window. My suspended tabs aren't loaded so I have to do that manually then try to remember which suspended tabs go in what windows.