bug 1241453 - fire nsIAccessibleTextChangeEvents for proxies r=davidb

This commit is contained in:
Trevor Saunders 2016-01-20 21:20:59 -05:00
parent db4df87399
commit 2044341d8e

View File

@ -212,6 +212,19 @@ DocAccessibleParent::RecvTextChangeEvent(const uint64_t& aID,
ProxyTextChangeEvent(target, aStr, aStart, aLen, aIsInsert, aFromUser);
if (!nsCoreUtils::AccEventObserversExist()) {
return true;
}
xpcAccessibleGeneric* xpcAcc = GetXPCAccessible(target);
xpcAccessibleDocument* doc = GetAccService()->GetXPCDocument(this);
uint32_t type = nsIAccessibleEvent::EVENT_TEXT_CHANGED;
nsIDOMNode* node = nullptr;
RefPtr<xpcAccTextChangeEvent> event =
new xpcAccTextChangeEvent(type, xpcAcc, doc, node, aFromUser, aStart, aLen,
aIsInsert, aStr);
nsCoreUtils::DispatchAccEvent(Move(event));
return true;
}