Restart Firefox Programmaticly

I’d like my addon to be able to restart Firefox. Is there an API for this? I thought I might be able to do something similar to what the Developer Toolbar (GCLI) does with its restart command but that feature is being entirely removed from Firefox.

Any other options?

I am facing the exact same problem and wrote everything I know in this comment:

The gist is:

  • about:profiles and click Restart normally... or
  • Ctrl + Shift + J and then Ctrl + Alt + R

With considerable effort the 2nd option could be automated (by a native application) fairly well (I think).

Thanks for the link! Glad I’m not the only one thinking about this. The key command automation sounds possible but that combination actually doesn’t do anything for me. Ctrl + Shift + J opens up the Browser Console but Ctrl + Alt + R has no effect for me. I’m on Ubuntu, is that an OS specific command?

1 Like

ghacks hints at it and seems to be right: it only works from FF62 onward.
I tried it it in the release (61) and trunk (63) versions on Linux and only the latter works.
Beta (62) on Windows works as well.

It works in Windows 10 PRO BUT I have to login again within social networks pages or web pages previously logged in :thinking: