Firefox Crashes on YouTube Videos with Hardware Acceleration

Firefox crashes on YouTube with hardware acceleration on Windows 10. Here's why and how to fix it step by step.

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.

  1. Open Firefox and click the menu button (three horizontal lines in the top-right corner).
  2. Select Settings.
  3. Scroll down to the Performance section.
  4. Uncheck the box that says "Use recommended performance settings".
  5. Then uncheck "Use hardware acceleration when available".
  6. 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.

  1. Type about:config in the address bar and press Enter.
  2. Click Accept the Risk and Continue.
  3. Search for layers.acceleration.disabled and make sure it's set to false.
  4. Search for gfx.webrender.force-disabled and set it to false too.
  5. 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.

  1. Click the menu button and select Help > Troubleshoot Mode.
  2. Click Restart.
  3. 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.

Related Errors in Software – Web Browsers
Safari Can't Establish a Secure Connection Safari Can't Establish Secure Connection on Mac — Real Fix ERR_NETWORK_CHANGED Chrome ERR_NETWORK_CHANGED between Wi-Fi and hotspot? Try this fix first Firefox CPU spike after visiting specific sites? Here's the fix Fix Browser Freeze on YouTube: Kill the Hardware Decode Glitch

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.