How to Stop Firefox From Opening on Startup in Windows

Martin Brinkmann
Updated •
Firefox, Windows 10

To stop Firefox from opening on its own when Windows starts, open about:config, search for toolkit.winRegisterApplicationRestart and set it to false. The change applies immediately and needs no restart. If other apps also reopen after sign-in, turn off Windows' restartable apps option, and check that Firefox is not listed under Startup apps.

This guide covers the three places that can launch Firefox at startup: Firefox's own restart registration, the Windows sign-in setting and the Windows startup list. It also explains what Firefox restores once it opens.

Turn off Firefox's automatic restart with toolkit.winRegisterApplicationRestart

The preference toolkit.winRegisterApplicationRestart controls whether Firefox tells Windows to relaunch it after a restart or sign-out. Setting it to false stops Firefox from reopening when it was still running during shutdown. Mozilla documents this as the fix for Firefox starting automatically when you restart Windows.

The toolkit.winRegisterApplicationRestart preference in Firefox about:config
The preference in about:config

Follow these steps:

  1. Open a new tab, type about:config in the address bar and press Enter.
  2. If Firefox shows a warning page, accept the risk and continue.
  3. Search for toolkit.winRegisterApplicationRestart.
  4. Click the toggle button next to it so the value reads false.

A value of true (the default) lets Firefox be relaunched by Windows, and false stops that. To undo the change, repeat the steps and set the value back to true. The preference only exists in Firefox for Windows. Be careful in about:config: other preferences there can affect stability, security and performance.

Stop Windows from reopening apps after sign-in

Windows can restart apps that were open when you shut down or signed out, and this is the second reason Firefox reappears. On Windows 11, open Settings, go to Accounts, then Sign-in options, and under Additional settings turn off "Automatically save my restartable apps and restart them when I sign back in." This stops every restartable app from coming back, not only Firefox. Labels can differ slightly between Windows 11 builds.

Windows 10 introduced the feature in the Fall Creators Update, and the menu wording differs between builds. Our older guide on how to block programs from reopening on Windows 10 start covers the Windows 10 side in more detail.

Closing Firefox yourself before you shut down or restart also prevents it from being relaunched, because Windows only restarts apps that were still running. If you prefer to keep Windows' feature on for other programs, the Firefox preference above is the targeted fix.

Check that Firefox is not a startup app

A separate cause is a startup entry: Firefox can be listed among the apps Windows launches at sign-in. Open Task Manager with Ctrl+Shift+Esc, switch to the Startup apps tab (labelled Startup on Windows 10), look for Firefox, right-click it and choose Disable. You can also open Settings, then Apps, then Startup, and switch Firefox off there.

This differs from the restart behavior above. A startup entry opens Firefox on every sign-in, even after a clean shutdown with Firefox closed. The restart registration only reopens Firefox when it was still running during shutdown or restart. If Firefox opens after every boot regardless of how you shut down, the startup list is the first place to look. If it only appears after you left it open, change the preference or the Windows sign-in option.

What Firefox restores when it opens

When Firefox does start, your Firefox startup setting decides which pages you see. In Firefox settings under General, the Startup section has an "Open previous windows and tabs" option. If it is on, Firefox brings back your last session, which is why a relaunch can feel like it never closed. Turn it off if you want a fresh start page each time.

Firefox may also run background tasks at launch. Our guide to disabling Firefox's captive portal test on startup covers one such connection check.

FAQ

Does the toolkit.winRegisterApplicationRestart change need a restart of Firefox?

No. Mozilla states that the change takes effect immediately once you toggle the value to false.

Will this stop Chrome or Edge from reopening too?

No. The preference is specific to Firefox. For other apps, use the Windows sign-in option or check each browser's own startup settings.

Why does the preference not appear in about:config?

It exists only in Firefox on Windows. If it is missing, make sure you are on Windows and type the name exactly, including the capital letters R, A and R.

Related: Block programs from reopening on Windows 10 start, Disable Firefox's captive portal test on startup, Firefox hardware acceleration

Comments

  1. MS user said on
    Reply

    Absolutely NOT, it is an annoyance. I always shut down my programs before shutting down or signing out but in this case Firefox would open up anyway. As far as I’m concerned the only time this MS feature would be useful is when the computer crashes.

  2. Anonymous said on
    Reply

    No, i do not and i find it extremely annoying that this feature is seemingly not optional. I don’t know whose bright idea it was to make it a default setting without asking consent from the freaking user, but that half-wit needs to be fired and fast.

    GIVE US THE OPTION TO DISABLE IT WITHOUT HAVING TO GO THROUGH THIS BULLSHIT, it’s common freaking sense.

  3. Anonymous said on
    Reply

    It is a completely useless feature and slows bootup to a crawl

  4. jane said on
    Reply

    It’s set to false and still opens automatically at start up I hate this. How can I make it stop? I have looked at startup settings and it is not listed there, so I don’t know why it keeps opening.

  5. Laurie said on
    Reply

    I do NOT find it useful, I find it alarming. I don’t always want to load the browser – sometimes I just want to use the computer.

    I tried your fix but it didn’t work. It is still happening. I don’t like somebody else deciding to turn on my browser. I don’t even have it left open when I turn off the laptop – I always close it first – and yet it is opening when I turn on the laptop.

    HELP.

  6. Sophie said on
    Reply

    @John – It’s an incredibly annoying “feature”, or at least – it would be if it has happening to me. Thankfully, my Win 10 is 1607, so I don’t get this.

    If I did get it, and could not turn it off (which I gather is the case), then it would super-annoy the hell out of me.

  7. John Fenderson said on
    Reply

    “do you find the automatic restart feature useful?”

    No, I find it the exact opposite of that. It’s incredibly annoying and without value at all to me.

Leave a Reply

By commenting, you accept our privacy policy and keep the discussion respectful and on topic.