gecko-dev/accessible
James Teh 8cb1edbab3 Bug 1847489: Detect UIA clients in Windows 10. r=nlapre
The new detection code introduced in bug 1838123 doesn't work on Windows 10.
This patch:

1. Splits the Windows 11 code into its own function.
2. Refactors the system handle enumeration code into its own function which can be called with a lambda, since it is needed for both Windows 11 and Windows 10.
3. Adds code to detect clients on Windows 10 based on the old detection code before bug 1838123, with some noteworthy changes:
    - Hooking the UIA window message doesn't work; our hook runs too late. It also doesn't work well for blocking; some clients will very likely poke us more than the maximum attempts in the old code (5 times).
    - Instead, we run this code as part of LazyInstantiator::ShouldInstantiate, just as we do for all other client detection.
    - This means we use the same UIA detection caching strategy; i.e. reset on foreground changes.
    - It also means we reuse the same instantiator setting and block listing code in LazyInstantiator.

Differential Revision: https://phabricator.services.mozilla.com/D185627
2023-08-10 01:00:13 +00:00
..
android Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
aom Bug 1840732 Part 5: Remove unnecessary includes from accessible/aom, r=Jamie 2023-07-07 03:22:08 +00:00
atk Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
base Bug 1843227: When scrolling with nsIAccessibleScrollType::SCROLL_TYPE_ANYWHERE, scroll to center instead of nearest. r=eeejay 2023-08-08 01:00:21 +00:00
basetypes Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
docs Bug 1621950 - fix some myst ref warnings r=firefox-source-docs-reviewers,devtools-reviewers,sylvestre 2023-03-30 08:01:22 +00:00
generic Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
html Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
interfaces Bug 1846660 part 2: Add IAccessibleTextSelectionContainer interface. r=nlapre 2023-08-04 02:51:42 +00:00
ipc Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
mac Bug 1845614 - Null check accessible before getting attributes. r=morgan 2023-08-04 17:11:45 +00:00
other Bug 1845883: Remove HyperTextAccessibleWrap. r=nlapre 2023-08-02 01:42:17 +00:00
tests Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
windows Bug 1847489: Detect UIA clients in Windows 10. r=nlapre 2023-08-10 01:00:13 +00:00
xpcom Bug 1372296: Unify ScrollSubstringToPoint for local and remote Accessibles, thus enabling support for RemoteAccessible on Windows. r=eeejay 2023-08-08 05:18:55 +00:00
xul Bug 1266437 - Drop "OS" modifier r=smaug,m_kato,karlt,Gijs 2023-08-07 01:03:58 +00:00
moz.build Bug 1754905 - Match Pivot API in nsIAccessiblePivot. r=Jamie 2023-06-28 21:45:16 +00:00