Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Firefox recovery.jsonlz4 / backup.jsonlz4 / sessionstore.jsonlz4 #884

Merged
merged 4 commits into from
Oct 5, 2021

Conversation

d10n
Copy link
Contributor

@d10n d10n commented Oct 4, 2021

When Firefox crashes, sometimes it does not open the previous session, even when correctly copying the session backup to sessionstore.jsonlz4.
If Tab-Session-Manager was not loaded at the time of the crash, then it can be difficult to manually recover the session.

This change adds support for importing Firefox session backups into Tab-Session-Manager.

Tree Style Tab data is available in the session backup, so it should be possible to import that data too, but this change does not import it.

d10n added 4 commits October 4, 2021 12:16
Prepare for importing Firefox session backup / recovery files
Dependency of mozlz4a
Found in the Firefox profile directory, inside sessionstore-backups.

JSON.parse() can accept Uint8Array, but it is not documented on MDN, so
I used TextDecoder.decode() to be safe.
@sienori
Copy link
Owner

sienori commented Oct 5, 2021

Thanks for the PR! I will merge it!

@sienori sienori merged commit ab06ca3 into sienori:master Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants