Truly independent web browser
LibWeb: Root the retargeted touch targets of event dispatch
Shannon Boothe16bc436a6bc
diff --git a/Libraries/LibWeb/DOM/EventDispatcher.cpp b/Libraries/LibWeb/DOM/EventDispatcher.cppindex 1e46ac010f8..07884957721 100644--- a/Libraries/LibWeb/DOM/EventDispatcher.cpp+++ b/Libraries/LibWeb/DOM/EventDispatcher.cpp@@ -257,7 +257,7 @@ bool EventDispatcher::dispatch(GC::Ref<EventTarget> target, Event& event, bool l// 6. If target is not relatedTarget or target is event’s relatedTarget, then:if (should_dispatch && (related_target != target || event.related_target() == target)) {// 1. Let touchTargets be a new list.- Event::TouchTargetList touch_targets;+ GC::RootVector<GC::Ptr<EventTarget>> touch_targets;// 2. For each touchTarget of event’s touch target list, append the result of retargeting touchTarget against target to touchTargets.for (auto& touch_target : event.touch_target_list()) {