commit 46e52c831cb2aff47a901d296c519b12848fca8d
parent 4f5a7cc0a517dcda60c96ac61cd647eaf359b869
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Mon, 17 Nov 2025 16:29:06 +0900
Bug 2000153 - Don't lose track of an event status we care about.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp
@@ -9630,7 +9630,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
StaticPrefs::test_events_async_enabled()) {
status = aWidget->DispatchInputEvent(&mouseOrPointerEvent).mContentStatus;
} else {
- aWidget->DispatchEvent(&mouseOrPointerEvent);
+ status = aWidget->DispatchEvent(&mouseOrPointerEvent);
}
// The callback ID may be cleared when the event also needs to be dispatched