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 265538 95fb2b552c0da3cd3264d45be56bcab2fedfe424
parent 265537 86d816333f8f38e21c134ca7e55bcedd2aba2314
child 265539 f89a4c296fb1dfdad6e4580ad36ba339f34f3c15
push id65962
push usersurkov.alexander@gmail.com
push dateThu, 01 Oct 2015 15:27:46 +0000
treeherdermozilla-inbound@95fb2b552c0d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs1210108
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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");