
My JS code looks like this: Edit: code updated with working version. My guess is i register the observer too late (after the session is read), so i tried to register it as soon as possible (when the extension is first loaded, insted of window load event), but it still wont work. Im currently making a firefox extension that will let you choose what tabs you want to reopen after startup, instead of opening everything (it opens about:sessionrestore page). The problem is, when i change to the read event, my observer stops working. It works fine with sessionstore-state-write (commented lines), but i want to do it with the sessionstore-state-read event, cuz i dont want to edit what it writes to the disk. Its super easy to restore a session when. Copy sessionstore.bak file to sessionstore.json (or. Save your browsing session, close all windows then start with a fresh session.
#ABOUT SESSIONRESTORE HOW TO#
Var NSGetModule = XPCOMUtils.generateNSGetModule() Here is how to restore all your tabs using the 'sessionstore.bak' file: Close the browser, make a backup of the sessionstore.bak file and don't relaunch the browser, it would overwrite the file. Var NSGetFactory = XPCOMUtils.generateNSGetFactory()


Throw Components.Exception("Unknown topic: " + aTopic) It'd be really nice if yall did Aiight then Thnx n hava good one. My JS code looks like this:Ĭhrome.manifest component Yea hey wuzzup M/F I wuz just wonderin' if yall could create/implement a 'Restore Session' button option or 'Restore previous session' option for the Private/Incognito browser window. Im currently making a firefox extension that will let you choose what tabs you want to reopen after startup, instead of opening everything (it opens about:sessionrestore page).
