Bug 1952461 - Get rid of dom.events.mouse-pointer-boundary.keep-enter-targets-after-over-target-removed pref r=smaug

It's enabled in bug 1938528 and shipped in 135 5 weeks ago.

The pref makes the complicated code harder to read.  Therefore, it's helpful
to get rid of this pref for the further work.

Differential Revision: https://phabricator.services.mozilla.com/D240815
This commit is contained in:
Masayuki Nakano
2025-03-10 13:26:10 +00:00
parent fffd1a6e07
commit 02dbe80552
3 changed files with 4 additions and 63 deletions

View File

@@ -8836,9 +8836,7 @@ nsresult PresShell::EventHandler::DispatchEvent(
// new mouse/pointer boundary event feature. However, they stop dispatching
// "pointermove" in the same case. Therefore, for now, we should do this
// only for eMouseMove.
if (StaticPrefs::
dom_events_mouse_pointer_boundary_keep_enter_targets_after_over_target_removed() &&
eventContent && aEvent->mMessage == eMouseMove &&
if (eventContent && aEvent->mMessage == eMouseMove &&
(!eventContent->IsInComposedDoc() ||
eventContent->OwnerDoc() != mPresShell->GetDocument())) {
const OverOutElementsWrapper* const boundaryEventTargets =