Firefox 157 regression: Fullscreen video severely washed out with hardware acceleration on Windows 11
Categories
(Core :: Graphics: WebRender, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| relnote-firefox | --- | 162+ |
| firefox-esr115 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox160 | --- | wontfix |
| firefox161 | --- | wontfix |
| firefox162 | --- | fixed |
People
(Reporter: brianmonaghan, Assigned: tnikkel)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 external file)
|
23.85 KB,
text/plain
|
Details |
Steps to reproduce
- Open Firefox on Windows 11 with hardware acceleration enabled.
- Navigate to: https://woodlandtrek.com/portfolio/2026-10-03/#lb=eed19f0915&item=ae8e497797
- Play the video in the lightbox.
- Observe that the video colors appear normal during regular playback.
- Press F or click the fullscreen control in the upper-right corner of the lightbox.
- Observe the change in video colors when fullscreen mode is activated.
- Exit fullscreen and observe that the colors return to normal.
Regression testing:
I performed additional testing on the same Windows system using clean Firefox profiles:
- Firefox 154: Works correctly.
- Firefox 155: Works correctly.
- Firefox 156: Works correctly.
- Firefox 157: Reproduces the problem.
- Firefox 158: Reproduces the problem.
- Firefox 159.0.1: Reproduces the problem.
This establishes a clear regression boundary between Firefox 156 and Firefox 157. The problem was introduced in Firefox 157 and continues to affect all subsequent releases tested, including Firefox 159.0.1.
Disabling Firefox hardware acceleration completely resolves the problem. Chrome and Microsoft Edge display the same video correctly.
Actual results
When the video enters fullscreen mode, its colors become severely washed out and excessively bright. The video appears faded, with noticeably reduced contrast and incorrect color reproduction.
The problem occurs consistently with hardware acceleration enabled. Exiting fullscreen restores normal video colors.
Testing with clean profiles establishes that the regression was introduced between Firefox 156 and Firefox 157. It remains reproducible in Firefox 158.0.
Disabling hardware acceleration eliminates the problem.
Expected results
The video should retain the same brightness, contrast, and color reproduction when switching between regular playback and fullscreen mode.
Fullscreen video should render correctly with hardware acceleration enabled, as it does in Firefox 154, 155, 156, Chrome, and Microsoft Edge.
Comment 1•7 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•7 days ago
|
||
| gecko-triage | ||
Thanks for the clear regression range: Firefox 156 works and Firefox 157 fails.
Analysis
This is a regression between Firefox 156 and Firefox 157. The decoder is the same inline and in fullscreen, so the difference is in the compositor. In fullscreen, WebRender can show the video as a DirectComposition overlay. When hardware acceleration is off, Firefox does not use this overlay. The about:support shows one SDR display, the video overlay available, and HwOverlayHDR=Not Supported.
The probable cause is bug 2008887, which landed on 2026-09-02 in the Firefox 157 Nightly cycle. That change is in DCSurfaceVideo::AttachExternalImage in DCLayerTree.cpp. Now the transfer function alone sets mContentIsHDR, so an 8-bit NV12 video tagged PQ or HLG also counts as HDR content. Then useHDR in DCLayerTree.cpp depends on gfx.webrender.overlay-hdr and the content, but not on the monitor. The overlay can then get an RGB10A2 swap chain with PQ output on an SDR monitor, with no tone mapping. This can give the washed-out fullscreen colors.
This cause holds only if the video is 8-bit and tagged PQ or HLG. The codec and the color tags of the sample are not known. No bisection confirms the cause.
The code at fault is in Core :: Graphics: WebRender, so this bug moves to that component. Ashley, could you please look at this bug? The change in bug 2008887 is the probable cause.
Next steps
Brian, could you please do this test and add the result to this bug?
- Open
about:config. - Set
gfx.webrender.overlay-hdrtofalse. - Close all Firefox windows, then start Firefox again.
- Play the video in fullscreen and look at the colors.
- Reset
gfx.webrender.overlay-hdrto its default value after the test.
If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
Updated•7 days ago
|
| Reporter | ||
Comment 3•7 days ago
|
||
I performed the requested test on Firefox 159.0.1.
Setting gfx.webrender.overlay-hdr to false and restarting Firefox completely resolves the issue. Fullscreen video now displays with the correct brightness, contrast, and colors, matching normal playback.
This confirms that disabling HDR handling in the WebRender overlay path eliminates the regression on my system.
The issue remains reproducible with the preference at its default value.
Thank you for investigating this and identifying a targeted workaround.
| Assignee | ||
Comment 4•6 days ago
|
||
Thanks for testing the pref, that pinned it down. Your video is 8-bit H.264 tagged HLG, which Firefox 157 started treating as HDR, and on an SDR monitor that sends it down a path with no tone mapping. I have a patch that only uses the HDR path when the monitor is HDR, with a try push to make a build that you can test.
Could you try it?
- Download target.zip, unzip it anywhere, and run firefox.exe from the unzipped folder. It doesn't need installing. It's a Nightly build, so it uses its own profile and won't touch the profile of your normal Firefox release install.
- Play the video in fullscreen like before, with
gfx.webrender.overlay-hdrleft at its default.
If the colors look right in fullscreen, the patch works.
| Reporter | ||
Comment 5•6 days ago
|
||
I tested the patched Nightly build provided in the try push, with gfx.webrender.overlay-hdr left at its default value.
I can confirm that the issue is completely resolved. Fullscreen video now displays with the correct brightness, contrast, and colors, matching normal playback.
The same video continues to exhibit washed-out colors in the current Firefox release (159.0.1), so the patched build appears to resolve the regression.
Thank you for investigating this and preparing the fix. I appreciate the quick turnaround.
| Assignee | ||
Comment 6•6 days ago
|
||
Thank for you testing so quickly!
| Assignee | ||
Comment 7•6 days ago
|
||
Since bug 2008887, 8-bit HLG/PQ video counts as HDR content, so on SDR
monitors it got a PQ swap chain with no tone mapping and looked washed out
in fullscreen. Require an HDR monitor for the HDR swap chain, and recreate
the swap chain when that decision changes.
Updated•6 days ago
|
Updated•5 days ago
|
Comment 9•4 days ago
|
||
| bugherder | ||
Comment 10•4 days ago
|
||
| bugherder | ||
Comment 11•1 day ago
|
||
Did you want to nominate this for the Fx162 relnotes? If so, set the relnote-firefox flag to "?"
Possible wording:
Fixed some HDR videos appearing washed out in full screen on Windows when using a non-HDR display.
| Assignee | ||
Comment 12•1 day ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Fixed some HDR videos appearing washed out in full screen on Windows when using a non-HDR display.
[Affects Firefox for Android]: no
[Suggested wording]: Fixed some HDR videos appearing washed out in full screen on Windows when using a non-HDR display.
[Links (documentation, blog post, etc)]: none
Updated•14 hours ago
|
Description
•