Commit Graph

206 Commits

Author SHA1 Message Date
Eitan Isaacson
f9fbfefda3 Bug 1801986 - Set pivot root to top remote document. r=Jamie
The pivot should never cross from remote into parent process local
containers. We need to explicitly set the root for the pivot, and
assert for this in the pivot traversal methods.

Differential Revision: https://phabricator.services.mozilla.com/D163285
2022-11-29 20:31:21 +00:00
James Teh
fc48558dff Bug 1778433 part 3: Remove defunct *AccessibleWrap types. r=nlapre
Now that they're no longer referenced, we can get rid of them.

Differential Revision: https://phabricator.services.mozilla.com/D162457
2022-11-22 04:55:11 +00:00
Michael Comella
7cbe6a2464 Bug 1797863 - add class documentation for accessibility tree nodes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D160583
2022-11-15 02:49:44 +00:00
James Teh
0450470092 Bug 1798614: Assume a default of 1.0 for Accessible::Opacity unless otherwise explicitly specified. r=morgan,eeejay
Previously, it was possible to have no value, but only for Accessibles without frames.
That effectively means display: contents, and since the content is visible (even though the element itself doesn't have a box), exposing it as non-opaque isn't important and arguably doesn't make sense.
This way, we avoid awastefully caching 1.0 for the vast majority of Accessibles.

Differential Revision: https://phabricator.services.mozilla.com/D161005
2022-11-10 04:19:29 +00:00
Eitan Isaacson
680d9510e8 Bug 1791152 - Drop entire accessible ID map in UnregisterAll. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D160835
2022-11-02 20:55:15 +00:00
Sandor Molnar
b6c8b21542 Backed out changeset 1b65ae3b0371 (bug 1791152) for causing android gv-junit-fis failures in SessionAccessibility CLOSED TREE 2022-11-02 21:05:46 +02:00
Eitan Isaacson
ffbb4d3202 Bug 1791152 - Drop entire accessible ID map in UnregisterAll. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D160835
2022-11-02 16:23:42 +00:00
Adam Vandolder
0be4513261 Bug 1665151 - Part 2: Expose custom element default accessibility attributes. r=edgar,Jamie,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D159237
2022-11-02 14:50:56 +00:00
Eitan Isaacson
3243bf997e Bug 1789474 - Allow detached documents to be overwritten in accessible mapping. r=Jamie,geckoview-reviewers,owlish
Also assure that unregistering an accessible removes the right one and
doesn't confuse the attached document with the detached one.

Add stderr output to Accessible::DebugPrint in Android as well.

Differential Revision: https://phabricator.services.mozilla.com/D157528
2022-10-17 23:10:19 +00:00
Sandor Molnar
6a467e1baf Backed out changeset 431649004dd4 (bug 1789474) for causing android gv-junit-fis-o crashes CLOSED TREE 2022-10-14 07:59:55 +03:00
Eitan Isaacson
1778c775fe Bug 1789474 - Allow detached documents to be overwritten in accessible mapping. r=Jamie,geckoview-reviewers,owlish
Also assure that unregistering an accessible removes the right one and
doesn't confuse the attached document with the detached one.

Add stderr output to Accessible::DebugPrint in Android as well.

Differential Revision: https://phabricator.services.mozilla.com/D157528
2022-10-13 22:03:03 +00:00
Eitan Isaacson
ebe08f86d0 Bug 1786519 - Null check BrowserParent's element and its owner doc. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D155729
2022-08-30 23:04:14 +00:00
Eitan Isaacson
8130d7e4dc Bug 1783733 - Return null if registered accessible is defunct. r=Jamie
Assert if we reach that condition, since the accessible failed to
unregister.

Differential Revision: https://phabricator.services.mozilla.com/D155086
2022-08-23 21:46:09 +00:00
Emilio Cobos Álvarez
42b7f1a58c Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.

Non-virtual actors can still use `nsString` if they need to on the
receiving end.

Differential Revision: https://phabricator.services.mozilla.com/D152519
2022-07-25 20:19:48 +00:00
Eitan Isaacson
f3cd181291 Bug 1778585 - Don't register non-top-level accessibles if there is no top-level regeistered. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D152328
2022-07-21 16:57:04 +00:00
James Teh
6c7598c3fe Bug 1772050: Don't call Attributes() in Android's HandleLiveRegionEvent. r=eeejay
Attributes() might do computation that we'll just throw away; e.g. building a CachedTableAccessible.
In a content process, cached data structures like this will never get used by a client, so building them will always be wasteful.
Instead, use nsAccUtils::SetLiveContainerAttributes, which only computes live region stuff.

Differential Revision: https://phabricator.services.mozilla.com/D151799
2022-07-14 21:58:37 +00:00
Butkovits Atila
41fa540cb7 Bug 1771934 - Lint fix. a=fix. CLOSED TREE 2022-07-07 02:07:45 +03:00
Eitan Isaacson
1916ea7d90 Bug 1771934 - Unregister all SessionAccessibility accessibles when top doc is shut down. r=Jamie
The associated PresShell of the root doc can be used for retrieving the
SessionAccessibility. If the PresShell is about to go away, we should
unregister all the accessibles.

Differential Revision: https://phabricator.services.mozilla.com/D150661
2022-07-06 22:26:08 +00:00
Narcis Beleuzu
53df7af2fd Backed out 1 changesets (bug 1771934) for crashes on WeakPtr.h . CLOSED TREE
Backed out changeset 5956f91b3975 (bug 1771934)
2022-06-29 00:26:14 +03:00
Eitan Isaacson
681cf4b1f5 Bug 1771934 - Return null accessible when SessionAcc is not fully attached. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D149295
2022-06-28 19:40:08 +00:00
Eitan Isaacson
9a0fb5f823 Bug 1772032 - Use DOM document node for getting SessionAcc instance. r=Jamie
Remove assert for doc to be last accessible to be removed because
in a doc shutdown scenario it will be the first to be removed.

Differential Revision: https://phabricator.services.mozilla.com/D148045
2022-06-02 22:10:04 +00:00
Norisz Fay
6cb54103b1 Backed out changeset 516dad1c0595 (bug 1772032) for causing geckoview-junit failures CLOSED TREE 2022-06-02 22:43:15 +03:00
Eitan Isaacson
c6fb2fffb7 Bug 1772032 - Use DOM document node for getting SessionAcc instance. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D148045
2022-06-02 19:01:14 +00:00
Eitan Isaacson
dbd21dbf8b Bug 1768927 - Preload localized role strings and heading levels at init. r=Jamie
We can't use the StringBundle object off the main thread. We need to
pre-load all the strings we may use. This is a small set of roles. We
also need formatted heading levels, so we preload heading level 1 to 6.

Differential Revision: https://phabricator.services.mozilla.com/D146112
2022-05-13 05:00:55 +00:00
Eitan Isaacson
4bec8d9205 Bug 1768913 - Don't send window content changed event when loaded about:blank. r=morgan
Testing note - this enables junit tests to start and pass more reliably
when caching is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D146106
2022-05-11 22:09:12 +00:00
James Teh
3a25e381f9 Bug 1766270: Null check IPCDoc() in Android DocAccessibleWrap::CacheViewportCallback. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D145847
2022-05-10 22:19:53 +00:00
Eitan Isaacson
83568bcd62 Bug 1765433 - P3: Get bundle and do pivot in UI thread for remote accessibles. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D144896
2022-05-04 18:00:47 +00:00
Eitan Isaacson
239896a063 Bug 1765433 - P2: Add AccessibilityNodeInfo population methods. r=Jamie
We cannot use GeckoBundle anymore because it cannot be constructed in
the UI thread. Instead, have a set of populate methods that take
arguments and set the correct fields in the AccessibilityNodeInfo, or
its optional info objects.

These fields can be called both in the Gecko and UI thread.

Differential Revision: https://phabricator.services.mozilla.com/D144895
2022-05-04 18:00:47 +00:00
Eitan Isaacson
9995cf770e Bug 1765430 - P4: Remove RemoteAccessibleWrap. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D144483
2022-04-27 22:44:46 +00:00
Eitan Isaacson
c9311969b2 Bug 1765430 - P3: Refactor Android Pivot methods. r=Jamie
This creates a clearer distinction between local pivots and remote
pivots. The former happens in the parent process and the latter happens
in the remote content process.

Differential Revision: https://phabricator.services.mozilla.com/D144482
2022-04-27 22:44:45 +00:00
Eitan Isaacson
f45be3470b Bug 1765430 - P2: Manage Android accessible/id mappings in SessionAccessibility. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D144481
2022-04-27 22:44:45 +00:00
Eitan Isaacson
15f4639e31 Bug 1765430 - P1: Move ToBundle to SessionAccessibility. r=Jamie
Since remote accessibles won't share AccessibleWrap as a base class
anymore this can't be an instance method. Move it to
SessionAccessibility, the sole consumer.

Note: ToBundle will hopefully get removed entirely once CTW is fully adopted.

Differential Revision: https://phabricator.services.mozilla.com/D144480
2022-04-27 22:44:45 +00:00
Butkovits Atila
20e2d30582 Backed out 4 changesets (bug 1765430) for causing android bustage. CLOSED TREE
Backed out changeset 72e27e3813d3 (bug 1765430)
Backed out changeset 47bbf5bd9315 (bug 1765430)
Backed out changeset e8161b463a3b (bug 1765430)
Backed out changeset 30c05f76d21e (bug 1765430)
2022-04-28 01:15:37 +03:00
Eitan Isaacson
3ee5a34515 Bug 1765430 - P4: Remove RemoteAccessibleWrap. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D144483
2022-04-27 21:01:36 +00:00
Eitan Isaacson
4dd84acb54 Bug 1765430 - P3: Refactor Android Pivot methods. r=Jamie
This creates a clearer distinction between local pivots and remote
pivots. The former happens in the parent process and the latter happens
in the remote content process.

Differential Revision: https://phabricator.services.mozilla.com/D144482
2022-04-27 21:01:36 +00:00
Eitan Isaacson
a010f500aa Bug 1765430 - P2: Manage Android accessible/id mappings in SessionAccessibility. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D144481
2022-04-27 21:01:35 +00:00
Eitan Isaacson
d5e1e3314e Bug 1765430 - P1: Move ToBundle to SessionAccessibility. r=Jamie
Since remote accessibles won't share AccessibleWrap as a base class
anymore this can't be an instance method. Move it to
SessionAccessibility, the sole consumer.

Note: ToBundle will hopefully get removed entirely once CTW is fully adopted.

Differential Revision: https://phabricator.services.mozilla.com/D144480
2022-04-27 21:01:35 +00:00
Eitan Isaacson
395df0c9f2 Bug 1765651 - Put DOMNodeID in Accessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D144234
2022-04-22 16:31:42 +00:00
Eitan Isaacson
ce4771430d Bug 1713050 - P3: Add more granularities to AXSelectedTextChanged events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D139747
2022-03-16 05:56:26 +00:00
Morgan Reschenberg
1fcc546b3a Bug 1733268: Cache states::OPAQUE1, update state on style change r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D140894
2022-03-15 18:46:46 +00:00
Eitan Isaacson
946b487baa Bug 1758811 - P3: Don't push cache when gecko cache is available. r=Jamie
This requires a little bit of decoupling of dispatching
WINDOW_CONTENT_CHANGED events when the content changes.

Differential Revision: https://phabricator.services.mozilla.com/D140751
2022-03-11 18:55:43 +00:00
Eitan Isaacson
0a81a46878 Bug 1758592 - P2: Return a value when pivoting and use it in parent-side traversal. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D140684
2022-03-10 00:11:40 +00:00
Eitan Isaacson
22a62daa19 Bug 1758592 - P1: Add IsCacheEnabled JNI method. r=Jamie
This is a simple method for checking a pref.

Differential Revision: https://phabricator.services.mozilla.com/D140683
2022-03-10 00:11:40 +00:00
Eitan Isaacson
b072f12d3c Bug 1758009 - Add a forwarder for description in RemoteAccessibleWrap. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D140259
2022-03-04 21:48:27 +00:00
Iulian Moraru
3477db368d Backed out changeset 7f96452dbcfd (bug 1758009) for causing android build bustages on RemoteAccessibleWrap. CLOSED TREE 2022-03-04 22:07:18 +02:00
Eitan Isaacson
23bf01f132 Bug 1758009 - Add a forwarder for description in RemoteAccessibleWrap. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D140259
2022-03-04 19:49:13 +00:00
Eitan Isaacson
57f4ee0c7b Bug 1757812 - P2: Move pivot in parent when caching is enabled. r=morgan
This is a baby step in the caching direction. It isn't perfect yet.
Specifically, cache we have now in Android depends on a cache push
from content that doesn't happen if we do this all parent side.

So most of the junit tests pass, except for the heading one because
we don't cache heading levels in the less complete viewport cache.

tl;dr
This will work right when the accessibles being retrieved are from our
ctw cache. This will happen in followup bugs.

Differential Revision: https://phabricator.services.mozilla.com/D140120
2022-03-03 22:04:39 +00:00
Eitan Isaacson
add4ad659f Bug 1757812 - P1: Make Android traversal rules remote friendly. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D140102
2022-03-03 22:04:38 +00:00
Emilio Cobos Álvarez
957e1363f5 Bug 1756323 - Cleanup mouse event coord code. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D139234
2022-02-21 11:53:02 +00:00
James Teh
d3319fc982 Bug 1747172: Support cached RemoteAccessible in Pivot text methods. r=eeejay
The XPCOM interface and AccVCChangeEvent still only support LocalAccessible.
These will need to be updated/refactored in the future.

Differential Revision: https://phabricator.services.mozilla.com/D138247
2022-02-15 05:35:14 +00:00