Firefox recently included native support for Netflix playback, which was certainly good news for Linux users. For me, it meant that I didn’t need to keep Google Chrome installed on my system anymore, as Netflix was the only thing I used it for.
However, after upgrading to the latest Firefox release and heading over to Netflix.com, I still couldn’t get playback to work. After a little searching, I found the solution.
First, make sure you have the ffmpeg package installed on your system, as Firefox uses these libraries for playback of certain video formats.
sudo dnf install ffmpeg
Once installed, restart Firefox to load the new plugins.
Now, make sure you’ve enabled DRM playback by going to Preferences > Content and ticking the “Play DRM Content” checkbox. This will download the components required to use Netflix and other DRM’d services.
The Fedora build of Firefox doesn’t use the standard user agent, instead adding “Fedora” to the string. As it turns out, Netflix doesn’t recognise this and refuses playback. To fix this, type about:config in the URL bar and hit return, then click “I accept the risk”. You’ll now see a long list of configuration options. Right click somewhere on the list and select New > String
Name the new string general.useragent.override and click OK, then enter Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 as the value.
Click OK again, and Netflix playback should work without issue!