12

All tabs groups lost after updating to Firefox 57.0 Quantum

I need to get back not only the open tabs (within the "active" group of tabs) but the rest of them (the ones that were open in "inactive" groups of tabs), which were more than 60 tabs

Is there any way to recover them?

essential
  • 241
jakijem
  • 123
  • 1
  • 5

8 Answers8

8

I have restored my tabs from inactive groups by installing the Sync Tab Groups extension.

Arthur
  • 205
6

If you're a Ubuntu user, or similar, you should be able to find the latest backup at

~/.mozilla/firefox/ro51nwle.default/sessionstore-backups/upgrade.jsonlz4-[timestamp of upgrade]

I didn't know anything about the file format, but this gist was basically enough to get me started

With the gist saved to the backup folder, you can export to json with:

$ sudo pip3 install lz4
$ python3 ./mozlz4a.py -d upgrade.jsonlz4-[timestamp of backup] backup.js

There's a lot of data in there (including each tab's entire history) but at least it's not lost!

If you just want to save the most recent url from each tab like I did, something like the following python should do the job:

#!/usr/bin/env python3

import json

with open('backup.js') as infile:
    read_data = infile.read()

json_data = json.loads(read_data)

tab_groups = json.loads(json_data['windows'][0]['extData']['tabview-group'])

groups = {int(k): {'title': tab_groups[k]['title'], 'tabs': []} for k in tab_groups.keys()}

for tab in json_data['windows'][0]['tabs']:
    url = tab['entries'][-1]['url']
    group_id = json.loads(tab['extData']['tabview-tab'])['groupID']
    groups[group_id]['tabs'].append(url)

with open('tabs_backup.json', 'w') as outfile:
    json.dump(groups, outfile, indent=4)
trrocket
  • 61
  • 2
3

If you're freaking out about losing your tabs, and simply want quick assurance that they're not gone forever, the easiest thing is to install the Tree-Style Tabs extension, as suggested by @trrocket. I can verify that after installing it, I was able to find the "lost" tabs in the sidebar.

That said, I just hope that I didn't miss out on any tabs. (If I can't tell the difference maybe it doesn't matter all that much... :P) I have also backed up my sessionstore files, and will take my time to process them to verify that I have indeed recovered all my tabs.

PS: All credit to @trrocket, but I thought it was was worth putting this as an answer instead of having someone panic on looking at the other answer, without reading the comments. +1 to @trrocket :-)

Siva
  • 131
1

Another option is to close Firefox, downgrade to Firefox 56, and restart Firefox. Your tab groups should be restored. At this point, you may save your tabs in a Firefox 57-safe way and upgrade to Firefox 57 again.

1

I had this problem too and found the following solution:

  1. Click on the menu at the top right of the browser (indicated by three horizontal bars)

  2. Click on the option to restore previous session (should be towards the top of the menu)

  3. All of your pre-quantum tabs should be carried over.

1

This Quantum-compatible addon offers similar functionality and will magically find all those missing tabs from your old Groups. I can't speak for how well it works as a replacement as I've only just downloaded it myself, for this very reason, but worst case scenario you can get the tabs back, bookmark them and get rid of Conex, so you've at least got those tabs backed up wile you work out how to cope without Groups.

Alex
  • 11
1

An alternative (what I did, afraid of losing my tabs with all those suggested extensions):

  • donwload Firefox standalone v.56-;
  • for safety, save a copy of your Firefox profile folder;
  • copy the relevant files from your installed Firefox profile folder into the one from v.56- (mainly the sessionstore-backups folder and the sessionstore.js file);
  • open v.56-, use TabGroups (already installed on your system) to create a backup file (.json).

Additionally, you can use an addon like Conex to import the TabGroups backup file, converting tabs to Container Tabs.

Phoinx
  • 111
1

This blog post (How I Recovered my Firefox Tab Groups) describes a way to extract them from sessionstore.js, using the linux commandline and Python.

(PS I know Stackexchange prefers an answer on the page rather than a simple link, but it didn't feel right to copy & paste that person's work from their blog on here)

Manu
  • 3,050