Граф коммитов

9669 Коммитов

Автор SHA1 Сообщение Дата
Randell Jesup fcaf70841e Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli 2390d257e6 Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE 2022-03-16 18:32:51 +02:00
Randell Jesup 4b033a5256 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +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
Eitan Isaacson a479c8f191 Bug 1713050 - P2: Add granularity to a11y caret move events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D139746
2022-03-16 05:56:25 +00:00
Eitan Isaacson d4418e9378 Bug 1713050 - P1: Add granularity to selection change notification. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139745
2022-03-16 05:56:25 +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
Emilio Cobos Álvarez 7ae76472af Bug 1759121 - Adjust an accessibility test that depended on a selectable block being after a <br>. r=morgan
An alternative would be to adjust the test expectation to not include
the trailing newline, but this seemed more likely to be what the test
wanted to test.

Differential Revision: https://phabricator.services.mozilla.com/D140954
2022-03-14 21:22:30 +00:00
Morgan Reschenberg ca2f84aa05 Bug 1757661: Make cached fields accessible in tests directly r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D139979
2022-03-14 19:52:50 +00:00
Morgan Reschenberg 238bdbc5e9 Bug 1756229: Cache scroll position r=Jamie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D139190
2022-03-14 19:52:50 +00:00
Iulian Moraru e8a5d3a8b3 Backed out 2 changesets (bug 1757661, bug 1756229) for causing build bustages on LocalAccessible.cpp. CLOSED TREE
Backed out changeset ba6ef5bc928e (bug 1757661)
Backed out changeset a6ea1aa0492a (bug 1756229)
2022-03-12 12:17:19 +02:00
Morgan Reschenberg c5a24dd555 Bug 1757661: Make cached fields accessible in tests directly r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D139979
2022-03-12 00:02:34 +00:00
Morgan Reschenberg 36590416d2 Bug 1756229: Cache scroll position r=Jamie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D139190
2022-03-12 00:02:33 +00:00
Eitan Isaacson 03871406e5 Bug 1749633 - Return early if event target is defunct. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D140884
2022-03-11 23:16:58 +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
Butkovits Atila bfa9c70d05 Backed out 2 changesets (bug 1756229, bug 1757661) for causing leaks. CLOSED TREE
Backed out changeset 20b9c772f7b5 (bug 1757661)
Backed out changeset 1dfe3b2c9405 (bug 1756229)
2022-03-09 01:12:55 +02:00
Morgan Reschenberg 9358cee431 Bug 1757661: Make cached fields accessible in tests directly r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D139979
2022-03-08 20:16:09 +00:00
Morgan Reschenberg 06012cd8fd Bug 1756229: Cache scroll position r=Jamie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D139190
2022-03-08 20:16:08 +00:00
Eitan Isaacson bbc77ff721 Bug 1758190 - Actually add AccGroupInfo instances to SetAttribute. r=morgan
The browser_obj_group.js test will pass when caching is enabled once
this lands.

Differential Revision: https://phabricator.services.mozilla.com/D140402
2022-03-08 17:29:18 +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
Nika Layzell 05dc5e0d76 Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8
Automatically generated rewrites of all ParamTraits and IPDLParamTraits
implementations in-tree to use IPC::Message{Reader,Writer}.

Differential Revision: https://phabricator.services.mozilla.com/D140004
2022-03-04 15:39:41 +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
James Teh d128c0bf67 Bug 1757257: Don't assert for a null frame in TextAttrsMgr::GetAttributes. r=morgan
There are several valid reasons for a HyperTextAccessible to have no frame.
As well as removing the assertion, document the (known) cases where GetFrame() might return null.
Also, document why we create a DocAccessible and call DoInitialUpdate despite a null root frame on its PresShell.

Differential Revision: https://phabricator.services.mozilla.com/D139908
2022-03-01 21:16:43 +00:00
James Teh 2f2e5d80a2 Bug 1756528: Fix cropping of siblings in TextRange::Crop. r=eeejay
There was already a code path to handle siblings, but this only applied if the boundary child at the range's start/end (often a text leaf) was a sibling of aContainer.
It didn't apply if aContainer was a direct sibling of the range's start/end container.
To fix this, don't restrict the code which handles the case where aContainer does not contain the start/end boundary.
This should always fail to crop, regardless of the ancestry.

Differential Revision: https://phabricator.services.mozilla.com/D139351
2022-02-26 23:01:56 +00:00
James Teh 8c2cca9320 Bug 1741793 part 6: Add tests to exercise RemoteAccessible text selection retrieval. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D139345
2022-02-26 23:01:56 +00:00
James Teh 35ebd00b30 Bug 1741793 part 5: Update XPCOM, Windows and ATK to support cached text selection querying. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D139344
2022-02-26 23:01:56 +00:00
James Teh 83cb50f000 Bug 1741793 part 4: Implement text selection querying for cached RemoteAccessible. r=eeejay
The original non-Windows RemoteAccessible SelectionBoundsAt method still exists because it allows the caller to retrieve both the offsets and the text in a single call, which can't be done with the unified API.
Thus, platform code still needs a separate code path for non-cached RemoteAccessible.

Differential Revision: https://phabricator.services.mozilla.com/D139343
2022-02-26 23:01:55 +00:00
James Teh a20035d2d2 Bug 1741793 part 3: Cache text selection in the parent process. r=eeejay
This uses selection changed and caret moved events.

Differential Revision: https://phabricator.services.mozilla.com/D139342
2022-02-26 23:01:55 +00:00
James Teh d637417f70 Bug 1741793 part 2: Update TextPoint/Range to use base Accessible. r=eeejay
Even though we'd ideally be using TextLeafRange for new things, TextRange is still needed by our selection events (which still use HyperText offsets) and IA2/ATK clients which depend on HyperText offsets.
Thus, we need TextRange to support RemoteAccessible.

Although the start and end containers are HyperTextAccessibles, I chose to store Accessible rather than HyperTextAccessibleBase because HyperTextAccessibleBase doesn't inherit from Accessible and having an Accessible is easier.

XPCOM needs to hold a reference to any state objects.
Because we can't hold a reference to an Accessible (due to RemoteAccessible), xpcAccessibleTextRange holds references to xpcAccessibleHyperText instead.

Differential Revision: https://phabricator.services.mozilla.com/D139341
2022-02-26 23:01:54 +00:00
James Teh 24238f9512 Bug 1741793 part 1: Remove TextRange stuff that was never implemented. r=eeejay
This class needs to be updated to support base Accessible and it doesn't make sense to port methods that can never be used.
Also, any new functionality (e.g. needed for the UIA text pattern) should now be implemented using TextLeafPoint/Range, not TextRange.

Differential Revision: https://phabricator.services.mozilla.com/D139340
2022-02-26 23:01:54 +00:00
Morgan Reschenberg 7aae56705c Bug 1744573: Apply single-level transforms in RemoteAccessibleBase::Bounds r=eeejay,Jamie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D131554
2022-02-25 22:23:13 +00:00
Morgan Reschenberg 618acab981 Bug 1744573: Cache the transform matrix r=eeejay,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D133134
2022-02-25 22:23:13 +00:00
James Teh 71e7b0d8cd Bug 1756727: Return E_NOTIMPL for a remote document in MsaaDocAccessible::get_accValue. r=morgan
The code previously assumed that the base MsaaAccessible implementation would return failure for a remote Accessible.
That is no longer true, so we crashed when we try to get the local DocAccessible.
For now, we explicitly check for remote and return E_NOTIMPL in that case.

Differential Revision: https://phabricator.services.mozilla.com/D139450
2022-02-23 21:29:13 +00:00
James Teh a9fcf6f459 Bug 1756730: Null check atributes in TextLeafPoint::FindTextAttrsStart. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D139453
2022-02-23 21:28:20 +00:00
Eitan Isaacson 04de4ace0c Bug 1756755 - Return unlocalized action name for atk_action_get_name. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D139501
2022-02-23 21:26:02 +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 03c7ccd06d Bug 1755420 part 2: Remove unnecessary case/if statements now that all boundaries (except CHAR) are implemented by TextLeafPoint. r=morgan
This also causes HyperTextAccessible to use HyperTextAccessibleBase for BOUNDARY_CHAR when the cache is enabled.
The fact that we weren't doing this already was an oversight.

Differential Revision: https://phabricator.services.mozilla.com/D138753
2022-02-18 22:35:20 +00:00
James Teh 759cd2a4f0 Bug 1755420 part 1: Fix HyperTextAccessibleBase::TextAfterOffset when called with BOUNDARY_CHAR and TEXT_OFFSET_CARET. r=morgan
We need to adjust the offset if the caret is at the end of the line in this case.

Differential Revision: https://phabricator.services.mozilla.com/D138752
2022-02-18 22:35:20 +00:00
Marian-Vasile Laza aef7ffb3a5 Bug 1755817 - lint fix r=fix CLOSED TREE 2022-02-18 20:46:12 +02:00
Eitan Isaacson 4fb238b0ec Bug 1755817 - Move LandmarkRole to Accessible. r=Jamie
Current mochitests should prove the soundness of this. The only thing
preventing this from becoming a non-virtual method is the reliance
on TagName which is only available when cached is enabled. When it
is disabled we need to fallback on the sync IPDL call.

Differential Revision: https://phabricator.services.mozilla.com/D138964
2022-02-18 18:21:01 +00:00
Eitan Isaacson cedb598cc3 Bug 1746833 - P4: Add remote textbox value calculation and tests. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D138950
2022-02-18 18:21:00 +00:00
Eitan Isaacson cfaef68bb6 Bug 1746833 - P3: Make GetTextEquivFromSubtree take Accessible. r=Jamie
The previous patch moved Value to Accessible. We can now use it in
GetTextEquivFromSubtree.

Differential Revision: https://phabricator.services.mozilla.com/D138949
2022-02-18 18:21:00 +00:00
Eitan Isaacson 6159254eee Bug 1746833 - P2: Move Value() to Accessible and calculate or use cached value remotely. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D138948
2022-02-18 18:20:59 +00:00