Bug 1210108 - Emit object:state-changed:showing event for doorhangers, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 01 Oct 2015 11:27:33 -0400
changeset 265622 95fb2b552c0da3cd3264d45be56bcab2fedfe424
parent 265621 86d816333f8f38e21c134ca7e55bcedd2aba2314
child 265623 f89a4c296fb1dfdad6e4580ad36ba339f34f3c15
push id15472
push usercbook@mozilla.com
push dateFri, 02 Oct 2015 11:51:34 +0000
treeherderfx-team@2c33ef6b27e0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs1210108
milestone44.0a1
Bug 1210108 - Emit object:state-changed:showing event for doorhangers, r=tbsaunde
accessible/atk/AccessibleWrap.cpp
--- a/accessible/atk/AccessibleWrap.cpp
+++ b/accessible/atk/AccessibleWrap.cpp
@@ -1247,16 +1247,21 @@ AccessibleWrap::HandleAccEvent(AccEvent*
     }
 
     case nsIAccessibleEvent::EVENT_SELECTION_WITHIN:
     {
       g_signal_emit_by_name(atkObj, "selection_changed");
       break;
     }
 
+    case nsIAccessibleEvent::EVENT_ALERT:
+      // A hack using state change showing events as alert events.
+      atk_object_notify_state_change(atkObj, ATK_STATE_SHOWING, true);
+      break;
+
     case nsIAccessibleEvent::EVENT_TEXT_SELECTION_CHANGED:
         g_signal_emit_by_name(atkObj, "text_selection_changed");
         break;
 
     case nsIAccessibleEvent::EVENT_TEXT_CARET_MOVED:
       {
         AccCaretMoveEvent* caretMoveEvent = downcast_accEvent(aEvent);
         NS_ASSERTION(caretMoveEvent, "Event needs event data");