Closed Bug 1748663 Opened 3 years ago Closed 3 years ago

Animated background image is being shown in devtools over and over if set via a CSS variable

Categories

(DevTools :: Netmonitor, defect)

Firefox 95
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1747494

People

(Reporter: warningnonpotablewater, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Steps to reproduce:

TLDR: go to https://web.bruh.ltd/0022-checkerboard/ and open the "Network" tab of the dev tools.

  1. Create an empty HTML page.
  2. Set the page background to an image using a CSS variable, for example:
body {
    --background: #007F7F url("bricks.png");
    background: var(--background);
}
  1. Animate the background using keyframes by changing the background-position over time.
  2. Open the "Network" tab of the dev tools.

Actual results:

The image is being downloaded over and over again.

Expected results:

The image should've been downloaded only once.

Apart from Firefox 95, I've also been able to reproduce the bug on Firefox Nightly 2022-01-05.

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

Component: Untriaged → Layout
Product: Firefox → Core

It's hitting the cache though, right? There's no data actually downloaded afacit. That's sort of expected, I believe, since CSS variables do create a new CSS value each time they are computed.

Flags: needinfo?(kirbykevinson)

It does hit the cache but floods the devtools, which is not only inconvenient but also can make the devtools unusable if left for enough time.

Flags: needinfo?(kirbykevinson)

By the way, Chromium doesn't seem to be affected by this bug.

Yeah, so I guess we're notifying devtools even when hitting the image cache which is unfortunate. This was changed in bug 1722759.

Component: Layout → Netmonitor
Flags: needinfo?(sefeng)
Product: Core → DevTools
Regressed by: 1722759
Summary: Animated background image is being downloaded over and over if set via a CSS variable → Animated background image is being shown in devtools over and over if set via a CSS variable
Has Regression Range: --- → yes
Keywords: regression

Yeah sorry, we plan to make it only display it once.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(sefeng)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.