Closed Bug 1707930 Opened 4 years ago Closed 4 years ago

Category button gradients are broken when scrolling the Youtube category bar.

Categories

(Core :: Graphics: WebRender, defect)

Firefox 90
Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
90 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox88 --- unaffected
firefox89 --- unaffected
firefox90 --- verified

People

(Reporter: alice0775, Assigned: nical)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(2 files)

Attached image screenshot

From Bug 1707456 comment #3

Steps to reproduce:

  1. Open https://www.youtube.com/
  2. Scroll the category bar (Click < or > button at the right side of the category bar)

Actual Results:
Category button gradients are broken

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=2174903818ae542d463979cd70134789e4ffdc80&tochange=f733b37f9626548ae83564a3fd43ddfa972977d9

Suspect: Bug 1702638 and Bug 1702228

Additional info:
Bug 1707460 (autoland change set d789290b3a2b) did not fix this problem.

Flags: needinfo?(nical.bugzilla)
Assignee: nobody → nical.bugzilla
Flags: needinfo?(nical.bugzilla)

WebRender internally reverses gradient stops when they are ordered from right to left. This is done while building the GPU data and the gradient cache key stored the reversed stops without sepcifying if they were revered or originally in that order. This meant that if a page had two similar gradients with the only difference being that on was reversed but not the other, they could end up using the same cache key and one of the two would not be rendered properly.

This patch includes a boolean in the cache key to make sure reversed gradients don't accidentally use the same key as similar non-reversed gradients.

Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f829807fded Account for reversed stops in the gradient cache key. r=gfx-reviewers,lsalzman
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Flags: qe-verify+

Hello,
I’ve managed to reproduce this issue using Firefox 90.0a1 (2021-04-27) on Ubuntu 20.04x64 by following the STR from Comment 0.
This is verified fixed using Firefox 90.0b4 on the following OSes: Windows 10x64, Ubuntu 20.04x64 and macOS 11.3.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: