sodcalculator

10 Tech How-To

Firefox Stuck in Safe Mode? Fix It

Guide 10-55516 · Updated · Step by step

If Firefox keeps starting in Safe Mode or won’t leave it, the fix usually involves disabling extensions, resetting a preference, or clearing a stuck profile lock. This article explains why it happens and walks you through the steps to get back to normal browsing.

What Is Firefox Safe Mode?

Firefox Safe Mode is a diagnostic state that starts the browser with all extensions disabled, hardware acceleration off, and default theme applied. It is designed to help you determine whether a problem is caused by an add-on, a setting, or the browser itself. When you launch Firefox in Safe Mode, you will see a small dialog asking if you want to refresh Firefox or continue in Safe Mode. If you don’t see that dialog and the browser just opens with extensions disabled, it may be stuck.

Why Does Firefox Get Stuck in Safe Mode?

There are several common reasons why Firefox might remain in Safe Mode even after you restart it normally:

  • Stuck safe-mode preference: Firefox stores a flag in its profile that tells it to start in Safe Mode. If that flag isn’t cleared properly, the browser will keep launching in Safe Mode.
  • Corrupted profile: A damaged profile can cause Firefox to repeatedly enter Safe Mode as a fallback.
  • Extension conflict: A misbehaving extension can trigger Safe Mode on every launch, and if the extension is still active, the cycle continues.
  • Leftover process: Sometimes a Firefox process is still running in the background, and the next launch picks up the Safe Mode flag from that process.

How to Exit Safe Mode Manually

If Firefox is stuck in Safe Mode, try these steps in order. The first one is the quickest and often works.

  1. Restart Firefox normally: Click the Firefox menu (three horizontal lines) and select Exit. Wait a few seconds, then relaunch Firefox. If it opens normally, you’re done.
  2. Use the Safe Mode dialog: If the dialog appears, click Start Normally or Exit Safe Mode. If you don’t see it, proceed to the next step.
  3. Reset the preference manually: Type about:config in the address bar, press Enter, and accept the warning. In the search box, type toolkit.startup.max_resumed_crashes. If it exists, set it to 0 by double-clicking it. Also search for browser.sessionstore.resume_from_crash and make sure it’s true. Restart Firefox.
  4. Clear the profile lock: Close Firefox completely. Open your profile folder (see below) and delete the lock file (or .parentlock on Linux). Then restart Firefox.
  5. Refresh Firefox: If nothing else works, go to about:support, click Refresh Firefox. This keeps your bookmarks and passwords but removes extensions and resets settings.

How to Find Your Profile Folder

Your profile folder contains your bookmarks, passwords, and preferences. To locate it:

  • Type about:support in the address bar and press Enter.
  • Under Application Basics, find Profile Folder and click Open Folder (Windows) or Show in Finder (macOS).

Once there, look for a file named lock (Windows) or .parentlock (Linux/macOS). Delete it only after Firefox is fully closed.

What to Do If Safe Mode Keeps Coming Back

If you’ve exited Safe Mode but it returns on the next launch, the cause is likely an extension or a corrupted preference. Try these steps:

  • Disable all extensions: Go to about:addons, click Extensions, and disable each one. Restart Firefox normally. If it starts fine, re-enable extensions one by one to find the culprit.
  • Check for hardware acceleration: In Safe Mode, hardware acceleration is off. If your graphics driver is causing crashes, Firefox may keep entering Safe Mode. Update your graphics driver or disable hardware acceleration in Settings > General > Performance.
  • Create a new profile: If the profile itself is corrupted, create a new one. Type about:profiles, click Create a New Profile, and then launch Firefox with that profile. You can later import bookmarks from the old profile.

Common Misconceptions About Safe Mode

One common misconception is that Safe Mode deletes your data. It does not. It only disables extensions and some features temporarily. Another is that you need to reinstall Firefox to get out of Safe Mode – that’s rarely true. Reinstalling the browser won’t clear the profile flag, so the problem would persist. The most reliable fix is to reset the preference or refresh the profile.

Frequently Asked Questions

Why does Firefox open in Safe Mode every time I start it?

This usually happens because the toolkit.startup.max_resumed_crashes preference is set to a value greater than 0, or because an extension is causing a crash loop. Resetting that preference to 0 and disabling extensions should stop the cycle.

Does Safe Mode remove my bookmarks and passwords?

No. Safe Mode only disables extensions and some features temporarily. Your bookmarks, passwords, and history remain intact. Refreshing Firefox, however, does remove extensions and some customizations, but keeps bookmarks and passwords.

How do I start Firefox in Safe Mode on purpose?

Hold down the Shift key while launching Firefox (on Windows) or hold Option while launching (on macOS). You can also open the menu (three lines) and click Help > Troubleshoot Mode (or Restart with Add-ons Disabled).

Can I exit Safe Mode without losing my extensions?

Yes. Exiting Safe Mode normally (by restarting) keeps all your extensions. If you used the Safe Mode dialog, just click Start Normally. If you refreshed Firefox, extensions are removed, but you can reinstall them from the Add-ons Manager.

Why is Safe Mode not showing the dialog anymore?

If the dialog doesn’t appear, the browser.safebrowsing.enabled preference might be modified, or a profile issue is preventing the dialog. Resetting the preference via about:config or refreshing the profile usually restores it.

Is Safe Mode the same as “Troubleshoot Mode”?

Yes, in newer versions of Firefox, Safe Mode is called Troubleshoot Mode. The functionality is identical – it starts with extensions disabled and hardware acceleration off.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →