summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-03-03 21:22:02 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-03-04 21:32:09 +0800
commit3d82baddf33f6951140b17e0c01c3901b733f041 (patch)
treea53e8bd9246db8e95e4abf6c69889d90ae58ab68 /widget
parent60d420fe715cbdd8e2db5bad0a390312383ca0a3 (diff)
downloaduxp-3d82baddf33f6951140b17e0c01c3901b733f041.tar.gz
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.
Diffstat (limited to 'widget')
-rw-r--r--widget/BasicEvents.h3
1 files changed, 3 insertions, 0 deletions
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<dom::EventTarget> mRelatedTarget;
+ nsCOMPtr<dom::EventTarget> mOriginalRelatedTarget;
nsTArray<EventTargetChainItem>* 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;
}
/**