Closed Bug 2040678 Opened 13 days ago Closed 9 days ago

"Heads up!" Some sites may not work as expected" card image is incorrect

Categories

(Firefox :: Settings UI, defect)

defect

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox151 --- disabled
firefox152 --- disabled
firefox153 --- fixed

People

(Reporter: muffinresearch, Assigned: emz)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Filed via slack

STR:

  • Go to about:settings#etp and set to custom.
  • Notice the card image display
  • There's also no learn more link.

What should happen:

  • Based on figma there the image in the card should fill that side of the card.
  • There should be a learn more link.

What happens:

  • The card looks like screenshot (see attachment to follow)
  • The learn more link is missing.

Notes from mstriemer on slack:

Keywords: regression
Regressed by: 1968112

:bvandersloot, since you are the author of the regressor, bug 1968112, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(bvandersloot)

Passing to Emma since the error was carried through the pane migration. Should be an easy fix to set imagewidth="large" and imagedisplay="cover". Unless mstriemer wanted to do it.

Flags: needinfo?(bvandersloot) → needinfo?(emz)

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

I don't think Bug 1968112 is the regressor and I also don't think that I regressed this. I can still take a look when I have time.

Flags: needinfo?(emz)
Assignee: nobody → emz
Status: NEW → ASSIGNED

fwiw from a Claude investigation Bug 2011984 — "UI polish pass for Settings Redesign" (commit: 55a8f442befa) is the possible regressor

In toolkit/content/widgets/moz-promo/moz-promo.mjs, that commit:

  1. Introduced the imageDisplay property (didn't exist before) with constructor default this.imageDisplay = "padded";
  2. Introduced imageWidth with default this.imageWidth = "small";
  3. Changed how images render — replaced the CSS-background mechanism (which paints --promo-image-url across the image
    container, effectively "cover") with an <img src=…> element whose layout is driven by the new imageDisplay/imageWidth
    attributes.

Before this commit, there was no "cover vs padded" choice — moz-promo painted the image as a CSS background and that's what
every consumer got. After this commit, any consumer that doesn't explicitly set .imageDisplay = "cover" and .imageWidth =
"large" renders padded-small instead of the old cover-large look.

The moz-promo defaults changed to imagewidth=small/imagedisplay=padded, which
left the etpLevelWarning card on about:settings#etp showing a small padded
image instead of the cover layout the Figma design calls for.

Thanks! Let's take Bug 2011984 as the regressor.

Regressed by: 2011984
No longer regressed by: 1968112

Preferences redesign is only enabled in Nightly. (please bot do not revert my changes)

Pushed by ezuehlcke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/13566be504f7 https://hg.mozilla.org/integration/autoland/rev/fb5ae54066e1 Set imagewidth=large and imagedisplay=cover on the ETP custom "Heads up!" promo. r=bvandersloot,Gijs
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: