From def92d1b8e9d373e2f6f27c366d578d97d8960c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:50 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- accessible/xpcom/xpcAccessible.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accessible/xpcom/xpcAccessible.cpp') diff --git a/accessible/xpcom/xpcAccessible.cpp b/accessible/xpcom/xpcAccessible.cpp index 37901e3ec2..ebf7ba8e80 100644 --- a/accessible/xpcom/xpcAccessible.cpp +++ b/accessible/xpcom/xpcAccessible.cpp @@ -636,7 +636,8 @@ xpcAccessible::ScrollToPoint(uint32_t aCoordinateType, int32_t aX, int32_t aY) { NS_IMETHODIMP xpcAccessible::Announce(const nsAString& aAnnouncement, uint16_t aPriority) { - if (RemoteAccessible* proxy = IntlGeneric()->AsRemote()) { + RemoteAccessible* proxy = IntlGeneric()->AsRemote(); + if (proxy) { #if defined(XP_WIN) return NS_ERROR_NOT_IMPLEMENTED; #else -- cgit v1.2.3