Closed Bug 1983984 Opened 8 months ago Closed 8 months ago

Dynamic UrlbarView rows can end up with "undefined" in their CSS classes

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox143 --- fixed
firefox144 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

(Whiteboard: [sng])

Attachments

(2 files)

I was debugging some CSS for market suggestions and found that the view can end up setting CSS classes called urlbarView-dynamic-${dynamicType}-undefined on elements in dynamic rows. It happens here when the childTemplate object doesn't have a name. The jsdoc says that name is required, but that's not enforced anywhere, so it's easy to miss, and I don't think it actually needs to be required at all.

This doesn't have any noticeable effects AFAICT -- seems to be harmless.

Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
Attachment #9508287 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined: This is required for the "carrots" realtime-suggestions Suggest feature in 143.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: none
  • Risk associated with taking this patch: low
  • Explanation of risk level: This isn't a user-visible change and is just a fix for harmless logical error.
  • String changes made/needed: none
  • Is Android affected?: no
Attachment #9508287 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [search] [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: