Closed Bug 2035353 Opened 9 days ago Closed 6 days ago

Rich search suggestion icons are forced into a square aspect ratio

Categories

(Firefox :: Address Bar, defect, P2)

defect

Tracking

()

VERIFIED FIXED
152 Branch
Tracking Status
relnote-firefox --- 150+
firefox-esr140 --- unaffected
firefox150 --- verified
firefox151 --- verified
firefox152 --- verified

People

(Reporter: adw, Assigned: adw)

References

Details

(Keywords: regression, Whiteboard: [sng])

Attachments

(5 files)

Attached image screenshot

After bug 2012436, rich search suggestion icons are loaded here and then here in the favicon utils, where they're forced into a square aspect ratio. Not all rich suggestion icons are square, see screenshots.

Attached image browser toolbox

I'd like to modify RemoteImageProtocolHandler so it takes a max dimension and
preserves the image's aspect ratio, but for now I think we should stop passing a
width and height to it so that it returns images at their native sizes and
aspect ratios. That's not any worse than before bug 2012436 D284071 landed.

See Also: → 2035971

I'd like to modify RemoteImageProtocolHandler so it takes a max dimension and
preserves the image's aspect ratio, but for now I think we should stop passing a
width and height to it so that it returns images at their native sizes and
aspect ratios. That's not any worse than before bug 2012436 D284071 landed.

Original Revision: https://phabricator.services.mozilla.com/D297215

Attachment #9575726 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: This fixes stretching and distortion of images in Google search suggestions (rich search suggestions). See the screenshots in the bug for an example.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Trigger rich search suggestions and verify that the icons are not distorted
  • Risk associated with taking this patch: low
  • Explanation of risk level: No functional changes other than fixing the bug. This patch causes Firefox to load these images at their native size, and then the UI will shrink them down for display, which is what Firefox did before the regressing bug landed.
  • String changes made/needed?: none
  • Is Android affected?: no
Flags: qe-verify+

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: This fixes stretching and distortion of images in Google search suggestions (rich search suggestions). See the screenshots in the bug for an example.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Trigger rich search suggestions and verify that the icons are not distorted
  • Risk associated with taking this patch: low
  • Explanation of risk level: No functional changes other than fixing the bug. This patch causes Firefox to load these images at their native size, and then the UI will shrink them down for display, which is what Firefox did before the regressing bug landed.
  • String changes made/needed?: none
  • Is Android affected?: no
Attachment #9575727 - Flags: approval-mozilla-release?

I'd like to modify RemoteImageProtocolHandler so it takes a max dimension and
preserves the image's aspect ratio, but for now I think we should stop passing a
width and height to it so that it returns images at their native sizes and
aspect ratios. That's not any worse than before bug 2012436 D284071 landed.

Original Revision: https://phabricator.services.mozilla.com/D297215

Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Attachment #9575726 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9575727 - Flags: approval-mozilla-release? → approval-mozilla-release+
QA Whiteboard: [search] [qa-triage-done-c152/b151][qa-ver-needed-c152/b151]
QA Whiteboard: [search] [qa-triage-done-c152/b151][qa-ver-needed-c152/b151] → [search][qa-triage-done-c152/b151][uplift][qa-ver-needed-c152/b151]

Reproduced the square rich suggestion icons with Firefox 150.0.1.
Verified as fixed using latest Nightly 152.0a1 and Firefox 151 beta 6 on Win 11 and mac OS 15.

Verified as fixed on Firefox 150.0.2 under Win 11, macOS 15 and Ubuntu 24.

Status: RESOLVED → VERIFIED
QA Whiteboard: [search][qa-triage-done-c152/b151][uplift][qa-ver-needed-c152/b151] → [search][qa-triage-done-c152/b151][uplift][qa-ver-done-c152/b151]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: