Backed out changeset f946717df0fd (bug 1863194) for causing wd failures @ webdriver/tests/bidi/input/perform_actions/wheel.py CLOSED TREE

This commit is contained in:
Sandor Molnar
2024-04-16 02:09:18 +03:00
parent 0b04606f8a
commit 1f76bee7da
4 changed files with 7 additions and 186 deletions

View File

@@ -12102,6 +12102,13 @@ void PresShell::EventHandler::EventTargetData::UpdateWheelEventTarget(
return;
}
// If the browsing context is no longer the same as the context of the
// current wheel transaction, do not override the event target.
if (!groupFrame->PresContext() || !groupFrame->PresShell() ||
groupFrame->PresContext() != GetPresContext()) {
return;
}
// If dom.event.wheel-event-groups.enabled is set and whe have a stored
// event target from the wheel transaction, override the event target.
SetFrameAndComputePresShellAndContent(groupFrame, aGUIEvent);