Closed
Bug 1402772
Opened 7 years ago
Closed 7 years ago
Change nsIEventListenerChange::changedListenerNames
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(1 file)
5.67 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
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.
![]() |
Assignee | |
Comment 1•7 years ago
|
||
Attachment #8911683 -
Flags: review?(bugs)
Comment 2•7 years ago
|
||
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+
![]() |
Assignee | |
Comment 3•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e2959069bc35bfa468203980316ff63ca388b28
Bug 1402772 - Change nsIEventListenerChange::changedListenerNames to a count of a11y-affecting elements. r=smaug.
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•