Closed Bug 2091358 Opened 7 days ago Closed

Firefox 157 regression: Fullscreen video severely washed out with hardware acceleration on Windows 11

Categories

(Core :: Graphics: WebRender, defect, P2)

Firefox 157
defect

Tracking

()

RESOLVED FIXED
162 Branch
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)

Attached file system-information.txt —

Steps to reproduce

  1. Open Firefox on Windows 11 with hardware acceleration enabled.
  2. Navigate to: https://woodlandtrek.com/portfolio/2026-10-03/#lb=eed19f0915&item=ae8e497797
  3. Play the video in the lightbox.
  4. Observe that the video colors appear normal during regular playback.
  5. Press F or click the fullscreen control in the upper-right corner of the lightbox.
  6. Observe the change in video colors when fullscreen mode is activated.
  7. 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.

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.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

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?

  1. Open about:config.
  2. Set gfx.webrender.overlay-hdr to false.
  3. Close all Firefox windows, then start Firefox again.
  4. Play the video in fullscreen and look at the colors.
  5. Reset gfx.webrender.overlay-hdr to its default value after the test.

If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.

Severity: -- → S3
Component: Audio/Video: Playback → Graphics: WebRender
Flags: needinfo?(brianmonaghan)
Flags: needinfo?(ahale)
Keywords: regression
Priority: -- → P2
See Also: → 2008887, 2073803

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.

Flags: needinfo?(brianmonaghan)
See Also: → 2091615

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?

  1. 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.
  2. Play the video in fullscreen like before, with gfx.webrender.overlay-hdr left at its default.

If the colors look right in fullscreen, the patch works.

Flags: needinfo?(brianmonaghan)
See Also: → 2091659
See Also: → 2079476

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.

Flags: needinfo?(brianmonaghan)

Thank for you testing so quickly!

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.

Assignee: nobody → tnikkel
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9679292 - Attachment description: Bug 2091358. Only use an HDR video overlay swap chain when the monitor is HDR. r?ahale,#gfx-reviewers → Bug 2091358. Don't use an HDR video overlay swap chain for HLG video on SDR monitors. r?ahale,#gfx-reviewers
Pushed by tnikkel@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a1cd1f64ec2 https://hg.mozilla.org/integration/autoland/rev/879709a5dfd2 Don't use an HDR video overlay swap chain for HLG video on SDR monitors. r=ahale,gfx-reviewers,sotaro
See Also: → 2091879
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

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.

Flags: needinfo?(tnikkel)

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

relnote-firefox: --- → ?
Flags: needinfo?(tnikkel)
Flags: needinfo?(ahale)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: