Closed Bug 1922291 Opened 12 days ago Closed 11 days ago

WebGL's texImage2D copies old video frames since Firefox 131

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 131
defect

Tracking

()

RESOLVED DUPLICATE of bug 1922278
Tracking Status
firefox-esr128 --- unaffected
firefox131 --- fixed
firefox132 --- fixed
firefox133 --- fixed

People

(Reporter: wessel_kroos, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Steps to reproduce:

I've created an isolated test case at https://codepen.io/wesselkroos/pen/MWNKZrj/f7f11e6757625699b2fdeb5adb0b7cfd

  1. Go to the codepen link
  2. Play the video
  3. Old and current video frames are rendered to the canvas
    (See the attached screenrecording)

Actual results:

Old and current video frames are randomly rendered to the canvas.
This is a regression that started to happen today after the update to Firefox 131. Firefox 130 and lower versions are working correctly.

Oddly not all video codecs are affected. For example:

  • the VP9 codec keeps rendering the first 5 or 7 frames in a random pattern
  • the H264 codec (from the isolated testcase) renders old an current video frames in a random pattern
  • the AV1 codec seems unaffected

This was reported by a user of my extension:
https://github.com/WesselKroos/youtube-ambilight/issues/265

All Firefox users of the Ambient light for YouTube extension are affected:
https://addons.mozilla.org/en-US/firefox/addon/ambient-light-for-youtube/

Expected results:

The current video frame should be rendered to the canvas.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: CanvasWebGL' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: CanvasWebGL
Product: Firefox → Core

I can repro.
Bisection:
Bug 1912368 - Use GpuProcessTextureId in D3D11TextureData if compositor device is used r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D218903

Status: UNCONFIRMED → NEW
Component: Graphics: CanvasWebGL → Graphics: Canvas2D
Ever confirmed: true
Keywords: regression
Regressed by: 1912368
Attached file about:support
Flags: needinfo?(sotaro.ikeda.g)

Can you type "about:support" into your Firefox browser and copy-paste its contents here?

Flags: needinfo?(wessel_kroos)
Attached file about:support
Flags: needinfo?(wessel_kroos)

Set release status flags based on info from the regressing bug 1912368

A small correction to my first comment:
The AV1 codec seems to be affected as well: https://github.com/WesselKroos/youtube-ambilight/issues/265#issuecomment-2389563047

This seems dup of Bug 1922278. Fix of Bug 1922278 is waiting for review.

Flags: needinfo?(sotaro.ikeda.g)
Status: NEW → RESOLVED
Closed: 11 days ago
Duplicate of bug: 1922278
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: