Shutdown firefox but on next launch, one time restore session -


in firefox, if restart it, come same session restored as possible. without changing preference "restore session on startup". there way addon trick on firefox? need shut down on next launch should restore session. need without changing preference of:

enter image description here

my user has clicked button restart aurora/firefox.exe nigtly/firefox.exe im trying accomplish this.

var appstartup = components.classes["@mozilla.org/toolkit/app-startup;1"]                  .getservice(components.interfaces.nsiappstartup); appstartup.quit(ci.nsiappstartup.eattemptquit | ci.nsiappstartup.erestart); 

see https://developer.mozilla.org/en-us/docs/mozilla/tech/xpcom/reference/interface/nsiappstartup#constants couple of other restart related options.


Comments

Popular posts from this blog

node.js - Using Node without global install -

java - Null response to php query in android, even though php works properly -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -