Closed Bug 1784849 Opened 2 years ago Closed 2 years ago

Copy constructor of MultiTouchInput doesn't copy mLayersId

Categories

(Core :: Panning and Zooming, defect)

defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: m_kato, Assigned: botond)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1783804 +++

From https://bugzilla.mozilla.org/show_bug.cgi?id=1783804#c9

(In reply to Hiroyuki Ikezoe (:hiro) from comment #5)

The aInput is MultiTouchInput, in the copy constructor of the class we don't copy over mLayersId so that we loose the information there. I am not sure not copying over the value is intentional or not, below change should fix this issue. There are other places we need to properly copy over the layers id in widget/android/nsWindows.cpp for other types of events.

If that's not intentional then that seems like a footgun that we should fix. Maybe Botond knows?

From From https://bugzilla.mozilla.org/show_bug.cgi?id=1783804#c10

Yeah, totally agree. The mLayersId was introduced in bug 1524239, it looks to me it's unintentional. CCing Masayuki and Henri.

Failure to copy in the copy constructor is unintentional. Sorry about the bug.

(In reply to Henri Sivonen (:hsivonen) from comment #1)

Failure to copy in the copy constructor is unintentional.

+1

This ensures all fields of InputData are copied, including
new ones added in the future.

Assignee: nobody → botond
Status: NEW → ASSIGNED
Attachment #9291031 - Attachment description: Bug 1784849 - Use InputData copy constructor in MultiTouchInput copy constructor. r=hiro → Bug 1784849 - Use defaulted copy constructor for MultiTouchInput. r=hiro
Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/971b4f5d47cb Use defaulted copy constructor for MultiTouchInput. r=hiro
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: