Open Bug 2012838 Opened 4 days ago Updated 2 days ago

Customize panel data-eventSource attributes use incorrect camelCase format

Categories

(Firefox :: New Tab Page, defect)

defect

Tracking

()

ASSIGNED

People

(Reporter: maxx, Assigned: maxx)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The ContentSection component uses camelCase for data attributes (data-eventSource) which doesn't work correctly in HTML. These attributes are case-insensitive, so data-eventSource becomes data-eventsource in the DOM.

When we try to access e.target.dataset.eventSource, it fails because the actual property is dataset.eventsource.

This breaks event source tracking for all customize panel toggles including:

  • WEATHER
  • TOP_SITES
  • TOP_STORIES
  • INFERRED_PERSONALIZATION
  • WIDGET_LISTS
  • WIDGET_TIMER
Blocks: 2010597
No longer blocks: 2012821
Assignee: nobody → mcrawford
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: