Serious Firefox Regression Since Version 159 – Fullscreen Video Color Distortion Still Unfixed
Categories
(Core :: Graphics, defect)
Tracking
()
People
(Reporter: cooperchen1981, Unassigned, NeedInfo)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:160.0) Gecko/20100101 Firefox/160.0
Steps to reproduce
- Open YouTube in Firefox.
- Play any video in normal window mode. Initially, the video displays with normal colors and contrast.
- Switch the video to fullscreen mode.
- Observe the video immediately after entering fullscreen.
- Exit fullscreen mode and observe the video again.
Actual results
Since Firefox 159.0, switching a video to fullscreen causes severe color and contrast distortion. The video becomes excessively saturated and noticeably more vivid than it should be.
The distortion persists even after exiting fullscreen mode. The video initially looks completely normal before entering fullscreen, so the problem is specifically triggered by switching to fullscreen.
This issue does not occur in Microsoft Edge when playing the same videos on the same computer.
Disabling Firefox hardware acceleration eliminates the color distortion, but causes noticeably sluggish performance when browsing Steam's website. Disabling hardware video decoding does not fix the problem.
I have been using Firefox for approximately 20 years, and this issue did not exist before version 159.0. It has persisted through subsequent updates, including 159.0.1 and 160.0.
I am extremely frustrated that this regression has remained unresolved across multiple releases. I should not have to sacrifice browser performance or switch browsers just to watch videos with correct colors.
If Mozilla does not address this issue promptly, I will seriously consider abandoning Firefox and switching permanently to Microsoft Edge.
Expected results
Video colors, brightness, and contrast should remain accurate and consistent when switching between normal window mode and fullscreen mode.
Entering or exiting fullscreen should never cause color saturation or contrast distortion. Video playback should work correctly with Firefox hardware acceleration enabled, without requiring users to disable GPU acceleration or sacrifice browser performance.
Comment 1•2 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 day ago
|
||
Thanks for the report and the screenshot. Several fixes for fullscreen video color problems on Windows landed for Firefox 162, and we'd like to find out whether this is one of them.
- Could you post the URL of a video that shows the problem? While it plays, please also right-click the video, choose "Stats for nerds", and copy the "Codecs" and "Color" lines here.
- Is your monitor HDR, and is HDR turned on in Windows display settings?
- Please go to about:support, click "Copy text to clipboard", and paste the Graphics section here. Ideally, copy it while the video looks wrong.
- In about:config, set gfx.webrender.overlay-hdr to false, restart Firefox, and try the same video in fullscreen. Does the problem still happen?
- If it still happens, set gfx.webrender.overlay-hdr back to true. Then set gfx.webrender.overlay-vp-auto-hdr to false, restart, and try again. Does that fix it? If you have an NVIDIA GPU, please also tell us whether RTX Video HDR is turned on in the NVIDIA app or the NVIDIA Control Panel.
- Firefox Nightly (https://www.mozilla.org/firefox/channel/desktop/#nightly) has those fixes. Nightly installs alongside your normal Firefox and uses its own profile. Does the problem happen there with the default settings?
Updated•1 day ago
|
Thank you for your response. Here are the answers to your questions and the additional information you requested.
1. Video URL and Stats for nerds
Here is a YouTube video that reproduces the issue:
https://youtu.be/d3RVQ7Mewm4?si=XJsqIFWDPoeA3IMx
I would also like to clarify that this issue is not limited to YouTube. It occurs with online videos across different websites in Firefox whenever I switch to fullscreen mode.
Stats for nerds for the YouTube video:
Windowed mode:
- Codecs:
av01.0.12M.08(401) / opus (251) - Color:
bt709 / bt709
Fullscreen mode (after the color distortion occurs):
- Codecs:
av01.0.12M.08(401) / opus (251) - Color:
bt709 / bt709
The codec and color information remain unchanged before and after entering fullscreen mode.
2. Monitor and HDR
- Monitor: Dell Alienware AW2725Q
- My monitor supports HDR.
- HDR is enabled in Windows 11.
3. Graphics information from about:support
My system information is:
- GPU: NVIDIA GeForce RTX 4080 SUPER
- NVIDIA driver version: 621.12 (32.0.16.2112)
- Windows 11 25H2
- OS Build: 26200.7462
- Firefox version: 160.0.1
I have also provided the Graphics section from about:support.
4. gfx.webrender.overlay-hdr
I tested gfx.webrender.overlay-hdr = false and restarted Firefox.
Unfortunately, the fullscreen video color distortion still occurs. This setting does not resolve the issue.
5. gfx.webrender.overlay-vp-auto-hdr and RTX Video HDR
I also tested gfx.webrender.overlay-vp-auto-hdr = false and restarted Firefox.
This setting also made no difference. The color distortion still occurs.
Regarding RTX Video HDR, it is enabled in the NVIDIA App.
6. Firefox Nightly
I have not tested Firefox Nightly yet.
Additional information about Windows Update
I have kept Windows Update disabled for a long time because I am concerned about problems caused by Windows updates. Therefore, my Windows installation has not received recent updates.
I hope this information helps narrow down the cause of the problem. Thank you for investigating it.
Comment 4•1 day ago
|
||
Thanks, that helps a lot. The about:support text didn't come through, there is no attachment or pasted text on the bug. Could you try again? Saving it to a .txt file and using "Attach New File" at the top of the bug works well.
Since your video is SDR (bt709) and gfx.webrender.overlay-hdr didn't help, this is probably a different problem from the one fixed in 162. A few more tests, one at a time, restarting Firefox after each change and setting it back afterwards:
- In about:config, set both gfx.webrender.dcomp-video-hw-overlay-win and gfx.webrender.dcomp-video-sw-overlay-win to false. Does fullscreen video still look wrong?
- Set gfx.webrender.overlay-vp-super-resolution to false. Does that fix it?
- With all prefs back at their defaults, turn off RTX Video HDR (and RTX Video Super Resolution) in the NVIDIA app. Does that fix it?
- When you get a chance, please try Firefox Nightly too.
I've uploaded the about:support information as a text file attachment.
I'd also like to share the results of my additional testing:
I've tried various combinations of settings and cross-tested the issue. The only way to make video colors display correctly in Firefox is to turn off HDR in Windows 11.
With Windows 11 HDR enabled, fullscreen videos worked perfectly in Firefox versions prior to 159. However, starting with Firefox 159, the colors become distorted whenever I switch any online streaming video to fullscreen.
This happens across different video streaming websites, not just YouTube. The same videos display correctly in other browsers, so the issue appears to be specific to Firefox.
To summarize:
- Windows 11 HDR enabled + Firefox versions before 159: No problem.
- Windows 11 HDR enabled + Firefox 159 and later: Colors become distorted in fullscreen video.
- Windows 11 HDR disabled + Firefox: Colors display correctly.
- Other browsers with Windows 11 HDR enabled: Videos display correctly.
I hope these additional details help narrow down the cause of the regression.
One additional finding: Disabling hardware acceleration in Firefox also resolves the color distortion, even when Windows 11 HDR remains enabled. This suggests that the problem is related to Firefox's hardware-accelerated video rendering path when Windows HDR is enabled.
However, I would prefer to keep hardware acceleration enabled, as disabling it negatively affects performance on some websites, such as Steam.
Comment 8•23 hours ago
|
||
Thanks for the about:support and the extra testing, that's very useful. I see you have two monitors, one HDR and one SDR, which matters here.
A few more things that would help:
- Could you try each of these on its own and tell us the result of each one? Restart Firefox after each change and set it back afterwards.
a. Set both gfx.webrender.dcomp-video-hw-overlay-win and gfx.webrender.dcomp-video-sw-overlay-win to false.
b. Set gfx.webrender.overlay-vp-super-resolution to false.
c. Turn off RTX Video HDR and RTX Video Super Resolution in the NVIDIA app. - Does it still happen if the Firefox window is on the HDR monitor and the SDR monitor is disconnected or turned off?
- Your profile has gfx.color_management.native_srgb set to true. Could you reset it to the default (right-click, Reset in about:config), restart, and check if anything changes?
- Since you're sure it started in 159, the most useful thing would be to find the exact change with mozregression. It downloads and runs older Firefox builds for you, and you say "good" or "bad" for each one. Instructions are here: https://mozilla.github.io/mozregression/quickstart.html. Run it with: mozregression --good 158 --bad 159
- When you get a chance, please also try Firefox Nightly.
Description
•