Fixing Firefox's Association with .webm Files despite MPV Mime Type Configuration

Abstract: Resolve Firefox overriding system defaults for .webm files by configuring internal MIME type handlers to save locally instead of streaming.

Created: 2026-10-07 by

Firefox often overrides system-wide file associations by treating .webm as a web content type rather than a local media file. To force Firefox to use MPV, you must configure the browser’s internal handler preferences for the specific MIME type or disable automatic downloads for that format. This guide details how to resolve this conflict on Linux, Windows, and macOS.

Understanding the Conflict Between Firefox and MPV

The core issue arises because Firefox is designed to stream video directly from the web. When you encounter a .webm file, the browser checks its internal list of known content types. Since video/webm is a standard HTML5 video format, Firefox assumes it should play the file in its built-in player or prompt you to save it locally. Even if your operating system has correctly associated .webm files with MPV via the desktop environment’s settings (such as GNOME Tweaks on Linux or Default Apps on Windows), Firefox ignores these external configurations for security and consistency reasons.

This behavior is not a bug but a feature intended to provide a seamless web browsing experience. However, for users who prefer dedicated media players like MPV for better performance, subtitle support, or hardware acceleration, this default behavior is frustrating. The solution requires intervening at the application level within Firefox rather than trying to change global system defaults.

Configuring Internal Handlers in Firefox

The most reliable method to fix this issue is to modify Firefox’s internal action preferences for the video/webm MIME type. This forces the browser to delegate the file handling to an external program instead of attempting to render it internally.

  1. Open Firefox and navigate to the address bar.
  2. Type about:config and press Enter. Accept the risk warning if prompted.
  3. In the search bar at the top, type pdfjs.disabled or simply search for handler.
  4. Look for the preference named browser.helperApps.neverAsk.saveToDisk.
  5. If this preference does not exist, right-click anywhere in the list, select New, then choose String.
  6. Name the new string browser.helperApps.neverAsk.saveToDisk.
  7. Enter the value video/webm (or append it to existing values with a comma). This tells Firefox to never ask what to do with this MIME type and always save it immediately.

Once saved, Firefox will stop trying to play .webm files in the tab. Instead, it will download them to your designated download folder. From there, your operating system’s default association will kick in, launching MPV when you double-click the file.

Alternative: Using the Handler Preferences UI

If you prefer a graphical interface over editing configuration strings, you can use the Content Type settings. Go to Settings > General > Files and Applications. Under the Applications section, scroll down to find video/webm. If it is not listed, click Show all. Change the action from "Preview in Firefox" to "Save File" or "Use other application." If you choose "Use other application," you may need to manually browse to the MPV executable.

Platform-Specific Considerations

While the Firefox configuration steps above are universal, the way your operating system handles the downloaded file varies slightly across platforms.

Linux Users

On Linux distributions using desktop environments like GNOME, KDE, or XFCE, file associations are managed by the FreeDesktop.org specification. After configuring Firefox to save the file, ensure that MPV is set as the default viewer for video/webm in your system settings. You can often do this by right-clicking a .webm file in your file manager, selecting Properties, and choosing MPV from the Open With tab. Additionally, check if xdg-mime query default video/webm returns the correct .desktop file for MPV in your terminal.

Windows Users

Windows 10 and 11 manage associations through the Settings app. Navigate to Settings > Apps > Default apps. Scroll down to Choose default apps by file type and locate .webm. Select MPV as the default. Note that some versions of Windows may group video types together; ensure that any related extensions like .mp4 or .mkv are also checked if you wish to use MPV for all media.

macOS Users

macOS uses the Finder to manage file associations. Right-click a .webm file, select Get Info, and under the Open with: section, select MPV from the dropdown menu. Click Change All... to apply this setting to all similar files. Firefox’s "Save File" action will place the file in your Downloads folder, where it will open with MPV upon double-clicking.

Verifying the Fix

To confirm that the issue is resolved, attempt to load a .webm URL in Firefox. If configured correctly, the browser should initiate a download rather than opening a video player. Once the file is saved, double-click it in your file manager. It should launch MPV immediately. If Firefox still attempts to preview the file, clear your cache and restart the browser to ensure the about:config changes have taken effect.

For more troubleshooting tips on browser-specific issues, you might find our guide on Firefox: Retry failed downloads automatically helpful for managing download errors.

Frequently Asked Questions

Why does Firefox ignore my OS file associations?

Firefox prioritizes web standards and security by handling known web content types internally. It does not query the operating system’s default applications for MIME types like video or audio to prevent potential security risks or inconsistent user experiences across different platforms.

Can I make Firefox play .webm files in MPV without downloading first?

No, Firefox cannot stream directly to an external desktop application like MPV due to sandboxing limitations. The only workaround is to let Firefox download the file and then rely on your OS to open it, or use a specialized add-on that intercepts the stream, though these are rare and often unstable.

What if I want MPV to handle all video formats?

You can add multiple MIME types to the browser.helperApps.neverAsk.saveToDisk preference in about:config. Separate each type with a comma, such as video/webm,video/mp4,video/x-matroska, to ensure Firefox saves all common video formats for external playback.

Does this affect streaming sites like YouTube?

No, this setting only applies to direct file downloads or embedded videos that trigger a download event. Streaming services like YouTube use dynamic JavaScript players that bypass the standard MIME type handler, so they will continue to play normally in the browser.

How do I revert these changes if I made a mistake?

To revert, go back to about:config and delete the custom string you created for browser.helperApps.neverAsk.saveToDisk, or remove video/webm from its value. Firefox will then return to its default behavior of prompting you or playing the file internally.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More