Closed Bug 1645904 Opened 4 years ago Closed 2 years ago

DocAccessibleParent::RecvVirtualCursorChangeEvent() swaps aReason and aBoundaryType

Categories

(Core :: Disability Access APIs, defect, P1)

defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox79 --- wontfix
firefox104 --- fixed

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.

Depends on: svace-analysis
No longer depends on: svace-analysis

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?

Flags: needinfo?(eitan)

Oops. Yes that is correct.

Assignee: nobody → eitan
Flags: needinfo?(eitan)
Priority: -- → P1
Severity: -- → S3

The fields are unused, but there's no reason to propagate them
incorrectly.

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.

Flags: needinfo?(eitan)

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4f7224434545
Fix swapped parameters for nsIAccessibleVirtualCursorChangeEvent r=eeejay
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Flags: needinfo?(eitan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: