gecko-dev/accessible/ipc
James Teh ba7d805a62 Bug 1650590: A11y COM handler: Use CoTaskMemAlloc/Free for row/column header ids arrays when returned by IGeckoBackChannel::Refresh. r=MarcoZ
DynamicIA2Data can be built to be transmitted in two different ways:

1. As part of the payload included in the stream when an accessible is marshaled; or
2. As an out parameter returned by IGeckoBackChannel::Refresh().

DynamicIA2Data includes arrays for row/column header ids.
Normally, such arrays would be allocated by CoTaskMemAlloc and freed by CoTaskMemFree.
However, in the first case, the struct is actually marshaled by RPC encoding functions, not by COM itself.
This means we must use midl_user_allocate/free, lest we crash.
We previously used midl_user_allocate/free for the second case as well.
Unfortunately, it turns out that this too causes crashes.

To fix this, we now use different memory allocation functions depending on how the struct is transmitted.

This patch also cleans up the old DynamicIA2Data in the client before calling IGeckoBackChannel::Refresh.
Previously, we didn't do this, which would have resulted in a leak.

Differential Revision: https://phabricator.services.mozilla.com/D82823
2020-07-09 06:56:24 +00:00
..
extension Bug 1616146 - Cache accessibility focus boundaries in java. r=Jamie 2020-02-18 21:09:06 +00:00
other Bug 1649217 - Part 2: Send isSelectionCollapsed for caret move in IPC. r=Jamie 2020-07-02 18:08:52 +00:00
win Bug 1650590: A11y COM handler: Use CoTaskMemAlloc/Free for row/column header ids arrays when returned by IGeckoBackChannel::Refresh. r=MarcoZ 2020-07-09 06:56:24 +00:00
DocAccessibleChildBase.cpp
DocAccessibleChildBase.h Bug 1631276 part 2: On non-Windows, have the parent process notify the content process when the DocAccessibleParent is constructed. r=eeejay 2020-06-29 18:12:44 +00:00
DocAccessibleParent.cpp Bug 1226473 - Support AXSelectedTextMarkerRange. r=morgan 2020-07-06 17:32:45 +00:00
DocAccessibleParent.h Bug 1649217 - Part 2: Send isSelectionCollapsed for caret move in IPC. r=Jamie 2020-07-02 18:08:52 +00:00
IPCTypes.h
ProxyAccessibleBase.cpp Bug 1634217. Make `accessible/` buildable outside of `unified-build` environment. r=eeejay 2020-05-01 04:28:35 +00:00
ProxyAccessibleBase.h Bug 1621517: Make nsIAccessible child retrieval work for OuterDocAccessibles with remote documents. r=yzen 2020-03-13 01:37:14 +00:00
ProxyAccessibleShared.h Bug 1598299 part 2: Remove ProxyAccessible::AccessibleAtPoint. r=yzen,nika 2020-03-29 23:08:44 +00:00
moz.build Bug 1565728 - Introduce PDocAccessiblePlatformExt. r=Jamie 2019-09-13 16:55:01 +00:00