You're watching a YouTube video, and about 30 seconds in—boom. Firefox freezes, the screen goes white, and then the whole browser crashes to desktop. This usually happens right when the video starts decoding, especially if you're on a laptop with an older GPU or a PC with an integrated Intel graphics chip. I know this error is infuriating because you can watch the same video on Chrome just fine.
Why Firefox Keeps Crashing
Firefox uses hardware acceleration to offload video decoding to your GPU, which should make playback smoother and use less CPU. But on Windows 10, there's a known compatibility mess between Firefox's rendering engine and certain graphics drivers—especially older NVIDIA drivers or Intel HD Graphics drivers that haven't been updated in a while. When Firefox tries to hand the video data to the GPU, the driver either hangs or throws an error, and the browser doesn't recover. It just dies.
The real fix isn't just turning off hardware acceleration, though that works as a stopgap. You'll want to update your GPU drivers first, then tweak Firefox's settings properly. Let's get into it.
Fix: Numbered Steps
Step 1: Update Your Graphics Driver
This is the root cause more often than not. Go to your GPU manufacturer's website—NVIDIA, AMD, or Intel—and grab the latest driver for your exact model. Don't rely on Windows Update; it often gives you a generic driver that's months old. For Intel, use their Intel Driver & Support Assistant. For NVIDIA, use GeForce Experience or the manual search. Install, restart your PC, and try YouTube again.
Step 2: Disable Hardware Acceleration in Firefox (Temporarily)
If updating the driver doesn't help, this is the quickest workaround. It's not the permanent answer, but it'll stop the crashes.
- Open Firefox and click the menu button (three horizontal lines in the top-right corner).
- Select Settings.
- Scroll down to the Performance section.
- Uncheck the box that says "Use recommended performance settings".
- Then uncheck "Use hardware acceleration when available".
- Restart Firefox.
That will force Firefox to decode video using your CPU, which is slower but stable. YouTube will still play fine, just maybe with higher CPU usage.
Step 3: Reset Firefox's Graphics Settings (If You're Brave)
If you want to keep hardware acceleration on (because it does help with 4K videos), you can reset Firefox's internal graphics preferences. These get corrupted sometimes after driver updates.
- Type
about:configin the address bar and press Enter. - Click Accept the Risk and Continue.
- Search for
layers.acceleration.disabledand make sure it's set to false. - Search for
gfx.webrender.force-disabledand set it to false too. - If either was set to true, change them and restart Firefox.
This forces WebRender back on, which is Firefox's modern rendering engine. It's more stable with recent drivers.
Step 4: Run Firefox in Safe Mode to Rule Out Extensions
Sometimes the crash isn't purely a graphics issue—an extension like an ad blocker or a video downloader can trigger the same symptom. Safe mode disables all extensions temporarily.
- Click the menu button and select Help > Troubleshoot Mode.
- Click Restart.
- Try playing a YouTube video in this mode.
If it doesn't crash, your problem is an extension. Disable extensions one by one in the normal mode until you find the culprit. I'd bet on a video downloader or a "force HTML5" add-on.
Still Crashing?
If you've done all that and Firefox still dies on YouTube, it might be a deeper issue with your Firefox profile. Type about:support in the address bar, and click Refresh Firefox. That resets the profile while keeping your bookmarks and passwords. This is a last resort, but it has saved more than one install.
Also, check if Windows 10 itself has pending updates. A stale GPU driver isn't the only thing that can foul up Firefox's graphics stack; a half-updated Windows can cause the same mess. Run Windows Update, install everything, restart, and test again.
One more thing: if you're on a laptop with a hybrid graphics setup (like an Intel iGPU and an NVIDIA discrete GPU), try forcing Firefox to use the discrete GPU. In the NVIDIA Control Panel, add firefox.exe and set it to use the High-Performance NVIDIA processor. That's fixed this crash for a few people I've helped. It's worth a shot.
You don't need to live with these crashes. Updating the driver fixes it for most; disabling hardware acceleration fixes it for nearly everyone else. If you're still stuck, the Firefox refresh is the nuclear option, but it works.