From 34e02634ff9898a66d531071e6b651627011acac Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Thu, 15 Oct 2015 15:02:56 -0400 Subject: [PATCH] bug 1213516 - fire showing state change event for atk in place of an alert event r=davidb --- accessible/atk/AccessibleWrap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/accessible/atk/AccessibleWrap.cpp b/accessible/atk/AccessibleWrap.cpp index 75ce3b15e62d..895af43d6bec 100644 --- a/accessible/atk/AccessibleWrap.cpp +++ b/accessible/atk/AccessibleWrap.cpp @@ -1471,6 +1471,10 @@ a11y::ProxyEvent(ProxyAccessible* aTarget, uint32_t aEventType) atk_object_notify_state_change(wrapper, ATK_STATE_VISIBLE, false); atk_object_notify_state_change(wrapper, ATK_STATE_SHOWING, false); break; + case nsIAccessibleEvent::EVENT_ALERT: + // A hack using state change showing events as alert events. + atk_object_notify_state_change(wrapper, ATK_STATE_SHOWING, true); + break; } }