![]() ![]() The API details and discussion are at SessionRestoreAPI. This is currently a feature of the SessionSaver extension that doesn't really fit into the core browser. 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. An extension could store session info on a remote server, and allow users to restore the same session from multiple computers. 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. Var NSGetModule = XPCOMUtils.generateNSGetModule() Var NSGetFactory = XPCOMUtils.generateNSGetFactory() All that on Windows 7, I don't have Windows 10 - but it shouldn't really matter. Throw Components.Exception("Unknown topic: " + aTopic) OP: What if you type about:sessionrestore into the address bar, does the page opening then have this issue as well For reference, I tried Firefox 43, 44, an older Firefox 45.0a1 nightly and the current Firefox 46.0a1 nightly. SessionRestore Videos A quick introduction. My JS code looks like this:Ĭhrome.manifest component SessionRestore has a minimalist interface, and is built using the latest macOS technologies and is designed to be fast and lightweight. 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). Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |