From 3d82baddf33f6951140b17e0c01c3901b733f041 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Fri, 3 Mar 2023 21:22:02 +0800 Subject: Issue #2135 - Bug 1413102: Ensure Shadow DOM boundaries are dealt properly in event handling * RE: BasicEvents.h - our WidgetEvent is not movable (yet), so the change that requires that wasn't included. * Parts of this use code that was introduced in bug 1427511. For now, they were replaced with their equivalents. --- widget/BasicEvents.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widget') diff --git a/widget/BasicEvents.h b/widget/BasicEvents.h index 9631dfd257..14977bdc24 100644 --- a/widget/BasicEvents.h +++ b/widget/BasicEvents.h @@ -427,6 +427,7 @@ public: /// The possible related target nsCOMPtr mRelatedTarget; + nsCOMPtr mOriginalRelatedTarget; nsTArray* mPath; @@ -448,6 +449,8 @@ public: mCurrentTarget = aCopyTargets ? aEvent.mCurrentTarget : nullptr; mOriginalTarget = aCopyTargets ? aEvent.mOriginalTarget : nullptr; mRelatedTarget = aCopyTargets ? aEvent.mRelatedTarget : nullptr; + mOriginalRelatedTarget = + aCopyTargets ? aEvent.mOriginalRelatedTarget : nullptr; } /** -- cgit v1.2.3