Review the files in this folder by date modified (you can ignore their names, any files at all in this folder should be restorable).Navigate to the sessionstore-backups backup folder you made.Moving rather than deleting is a precautionary step. Move the file called sessionstore.jsonlz4 to another location (like your desktop).Make a copy of the sessionstore-backups folder.A filesystem view of your profile folder will show up. Go to about:support in your location bar and click on the Open Folder button in the Profile Folder line.If you are on one of these versions replace all instances of. Note: Versions of Firefox 55 and lower use the older filetype. If a session is lost, hopefully the restore page opens automatically, but if not go to about:sessionrestore in the location bar. >+ restoreItem.Firefox's tab session saving function is pretty robust, however there are special situations where a browsing session may be lost (often when the process gets killed while shutting down, a la Windows 10 update). >+ & !PrivateBrowsingUtils.isWindowPrivate(window) >+ let restoreItem = document.getElementById("Browser:RestoreLastSession") Although we do avoid overly long lines, my feeling is that we're not pedantic about enforcing an 80 characters limit in most browser code. Let ss = this also looks like it fits well on one line.
I'll also lobby against the trailing dot and suggest this:
>+ let ss = getService(Ci.nsISessionStore) Please move your block up there such that we don't get the service twice. This is because the sessionstore service is initialized in delayedStartup. > correct value before the onload handler for the first window has been run, > I do this in delayedStartup because canRestoreLastSession doesn't have the (In reply to Ehsan Akhgari from comment #5)