Closed Bug 1402772 Opened 7 years ago Closed 7 years ago

Change nsIEventListenerChange::changedListenerNames

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

Attachments

(1 file)

nsIEventListenerChange::changedListenerNames is an nsIArray attribute that contains nsIAtoms. Bug 1396693 made it `noscript` to help with nsIAtom deCOMtamination (bug 1392883) but more changes are needed: that array eventually needs to be changed to nsTArray<RefPtr<nsIAtom>>, but we can't easily use that type via XPIDL. However, the attribute has a single use, in a11y code. That code merely iterates over the list and counts how many atoms it contains that match "onclick", "onmousedown", and "onmouseup". So this patch moves that counting functionality inside nsEventListenerChange by changing the attribute to `countOfEventListenerChangesAffectingAccessibility`. This saves us from having to expose the array of atoms via XPIDL.
Comment on attachment 8911683 [details] [diff] [review] Change nsIEventListenerChange::changedListenerNames "Change nsIEventListenerChange::changedListenerNames. r=smaug." is a bit vague commit message, I mean as the main part of the commit message. And nsTArray<RefPtr<nsIAtom>> can be quite easily used in idl files (like any C++), so perhaps remove that comment.
Attachment #8911683 - Flags: review?(bugs) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e2959069bc35bfa468203980316ff63ca388b28 Bug 1402772 - Change nsIEventListenerChange::changedListenerNames to a count of a11y-affecting elements. r=smaug.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: