14

Many times when I upgrade the system under Linux, firefox pops up a window suggesting to restart the program in order to make effective all the changes.

When I ignore that windows because of an urgent duty in a second time I'm not able to find it again.

Of course I know it's always possible to exit and restart it manually; in Linux to kill the process with pkill firefox && sync && firefox &, with or without a brutal -9.
In a similar way in Windows it is possible to use the Task Manager...

What I was searching for is an internal solution, a clean one, possibly system independent. How to force to restart firefox in a clean way ?


ps> It is possible that when updated external third parties programs firefox will not prompt for restarting, even if it should be recommended.

2

2 Answers 2

17

Update:
Now it is possible to do it directly in the url bar, asking for the special page about:restartrequired

about:restartrequired

It opens a page with a button to restart firefox that should preserve pages, tabs and windows.

enter image description here

Fast Internal answer:
Press ShiftF2, write restart in the opened bar, then press enter.
On old versions, e.g. the 41.0.2, it was needed to write the word true too: restart true.

Some words more:
It's possible to force Firefox to restart through the Developer Toolbar, usually accessible via ShiftF2 or via menu (Firefox/Tools >> Web Developer >> Developer Toolbar in the English version).

A bar will be opened in the bottom of the page where it will be possible to write the command

restart

It is possible to use restart --nocache true or restart --nocache false in order to force it the refresh of the tabs content or to use the local cached instead.
In a similar way it is possible to force the safe mode upon restart.

Synopsis: restart [--nocache] [--safemode]

Restart Firefox

Options:

[--nocache] (boolean, required)
Disables loading content from cache upon restart
[--safemode] (boolean, required)
Enables Safe Mode upon restart

An alternative way; pick a firefox Add on:
Another option was to pick one of the many add-ons available for Firefox from the add-on page, such as Restart Button, or Restart... that can add a button or a line in the the menu. However these examples are not compatible with Firefox 57 or later.

3
  • 5
    This answer is expiring. In the next stable release (Firefox 62), the Developer Toolbar is removed. None of the restarting add-ons are working in latest Firefox. The only way since Firefox 62 is to go to about:profiles page, as shown here. Aug 6, 2018 at 19:08
  • @FranklinYu The answer is updated...
    – Hastur
    Mar 29, 2019 at 12:55
  • Working on 94.0.
    – Hastur
    Dec 22, 2021 at 20:25
7

In Firefox 62, the browser CLI (ShiftF2) was removed (change tracker, release notes). I found two ways to restart Firefox 62 or newer:

Using about:profiles

  1. Navigate to about:profiles in the URL bar.
  2. At the top-right corner of the page, click Restart normally....

Keyboard shortcut in browser console

  1. Press CtrlShiftJ (or CmdShiftJ on Mac) to open the Browser Console.
  2. Press CtrlAltR (or CmdAltR on Mac) to restart the browser.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .