DocAccessibleParent::RecvVirtualCursorChangeEvent() swaps aReason and aBoundaryType
Categories
(Core :: Disability Access APIs, defect, P1)
Tracking
()
People
(Reporter: izbyshev, Assigned: eeejay)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Svace static analyzer reported that the call at https://hg.mozilla.org/mozilla-central/file/4fdcaa5d6ec3/accessible/ipc/DocAccessibleParent.cpp#l424 passes aBoundaryType
and aReason
(in that order) as the last two int16_t
arguments, but xpcAccVirtualCursorChangeEvent
constructor expects to receive them in the reverse order (IIUC it's generated from https://hg.mozilla.org/mozilla-central/file/4fdcaa5d6ec3/accessible/interfaces/nsIAccessibleVirtualCursorChangeEvent.idl).
I couldn't find any place that swaps them back, which would make it just a cosmetic issue, so it seems to be a real one.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
This is definitely wrong. However, I think the xpcom event is now only used by our automated tests, which probably don't look at the reason and boundary type. Eitan, is this correct?
Assignee | ||
Comment 2•4 years ago
|
||
Oops. Yes that is correct.
Updated•4 years ago
|
Comment 3•2 years ago
|
||
The fields are unused, but there's no reason to propagate them
incorrectly.
Comment 4•2 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:eeejay, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 5•2 years ago
|
||
The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.
Pushed by eisaacson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4f7224434545 Fix swapped parameters for nsIAccessibleVirtualCursorChangeEvent r=eeejay
Comment 7•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•