Closed Bug 1743795 Opened 3 years ago Closed 3 years ago

Canvas background is visible even though context was created with alpha:false

Categories

(Core :: Graphics: CanvasWebGL, defect, P1)

Firefox 94
Unspecified
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 1449575
Tracking Status
thunderbird_esr91 --- unaffected
firefox-esr91 --- unaffected
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- wontfix
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- fixed

People

(Reporter: dalokmarcinak, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

Steps to reproduce:

  1. Go to https://bimx.graphisoft.com/model/0d020f3f-d95b-4941-8de1-0fd18b3bdf48
  2. If on Mac or Linux, spoof the user agent, because the app limits features on Mac Firefox. This is not necessary on Windows
  3. Press the big play button in the middle
  4. Double click "3D model" and wait for the model to load

Actual results:

The lightmaps of the 3D scene appear white.

Our testing shows that this is a regression introduced in Firefox 93 and still reproducible in 95 beta.
It can be demonstrated that the white color is coming from the HTML page background. If I go into devtools and add a style="background-color: purple" attribute to the canvas element, the lightmaps also become purple. The canvas background should not be visible case because the webgl context was created with alpha: false.

Expected results:

The lightmaps should appear black. I've attached a screenshot showing the correct behaviour in Chrome. Firefox pre 93 works correctly as well.

I can reproduce the issue in Firefox93, 94 95.0 and Nightly96.0a1 Windows10.

Status: UNCONFIRMED → NEW
Component: Untriaged → Canvas: WebGL
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Product: Firefox → Core

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

The severity field is not set for this bug.
:jgilbert, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jgilbert)
Severity: -- → S3
Flags: needinfo?(jgilbert)
Priority: -- → P1

FYI: This report is part of a P1 triage list that a "WebGL mini team" within Platform Graphics will begin addressing this week.

I bet this is fixed by bug 1449575.

Status: NEW → RESOLVED
Closed: 3 years ago
Depends on: 1449575
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

But let's wait on it!

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → DUPLICATE

Looks fixed to me. Can you confirm in an up-to-date Nightly?
I believe the workaround would be to use an alpha:true canvas and keep the alpha channel as opaque yourself.
Thanks for reporting this!

Flags: needinfo?(dalokmarcinak)

I can confirm the bug appears fixed in latest Nightly.

Flags: needinfo?(dalokmarcinak)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: