gecko-dev/accessible
Makoto Kato b67709d926 Bug 1827386 - Part 1. NativeWeakPtr::Detach returns MozPromise to detect whether dispoer is finished. r=geckoview-reviewers,owlish
Actually, `NativeWeakPtr::Detach` may not release JNI ojbect immediately because
it depends on JNI object's `OnWeakNonIntrusiveDetach`i implementation.
`SessionAccessibility`'s `OnWeakNonIntrusiveDetach` implementation uses the
runnable to run on Android UI thread then disposer runs on main thread, so
if Detach is finished, JNI object isn't detached yet.

If calling `NativeWeakPtrHolder::Attach` immediately with same/recycled Java
object after `NettiveWeakPtr::Detach`, it is possible to run disposer for JNI
object by `OnWeakNonIntrusiveDetach` after Attach is finished. So it may
release newer attached object unfortunately.

So I would like to add a way to waiting for detach JNI object using
`MozPromise`.

Also, `MozPromise.h` includes `Natives.h` header (for `GeckoResult` support).
So I cannot modify inline method to use `MozPromise` due to recursive. So I
split implementation with `NativesInlines.h` as workaround.

Differential Revision: https://phabricator.services.mozilla.com/D175335
2023-05-09 05:13:32 +00:00
..
android Bug 1827386 - Part 1. NativeWeakPtr::Detach returns MozPromise to detect whether dispoer is finished. r=geckoview-reviewers,owlish 2023-05-09 05:13:32 +00:00
aom Bug 1794043: Improve AccAttributes ergonomics, r=eeejay 2022-10-13 01:00:57 +00:00
atk Bug 1826865 - Make SetCurValue asynchronous. r=Jamie,ipc-reviewers,jld 2023-04-28 15:59:01 +00:00
base Bug 1828373: Create accs for elements with overflow:scroll and overflow:auto styling r=nlapre,Jamie 2023-05-08 20:51:12 +00:00
basetypes Bug 1826853 - Add a caching version of CaretLineNumber and fix sync version. r=Jamie 2023-05-08 16:53:01 +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 1455416: Relocate aria-owned accessibles on (aria) parent removal, r=Jamie 2023-05-08 20:52:38 +00:00
html Bug 1826856 - Remove sync AnchorURIAt method. r=Jamie 2023-04-25 16:34:12 +00:00
interfaces Bug 1824935 part 3: Add Accessible::ComputedARIARole. r=eeejay 2023-04-25 07:06:35 +00:00
ipc Bug 1825611: Trim bounds when hittesting overflow:hidden containers r=Jamie 2023-05-08 20:51:11 +00:00
mac Bug 1826853 - Add a caching version of CaretLineNumber and fix sync version. r=Jamie 2023-05-08 16:53:01 +00:00
other Bug 1778433 part 3: Remove defunct *AccessibleWrap types. r=nlapre 2022-11-22 04:55:11 +00:00
tests Bug 1455416: Relocate aria-owned accessibles on (aria) parent removal, r=Jamie 2023-05-08 20:52:38 +00:00
windows Bug 1826865 - Make SetCurValue asynchronous. r=Jamie,ipc-reviewers,jld 2023-04-28 15:59:01 +00:00
xpcom Bug 1826865 - Make SetCurValue asynchronous. r=Jamie,ipc-reviewers,jld 2023-04-28 15:59:01 +00:00
xul Bug 1824667 - Remove nsTextBoxFrame. r=jwatt 2023-03-27 23:46:51 +00:00
moz.build Bug 1824935 part 3: Add Accessible::ComputedARIARole. r=eeejay 2023-04-25 07:06:35 +00:00