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

579 Коммитов

Автор SHA1 Сообщение Дата
Marco Zehe 73147045b1 Bug 1678015 - Expose assertive live region attributes for ARIA alerts on Mac, r=Jamie,eeejay
This is done via an ifdef in the ARIAMap. Provisions, however, are there to simply remove the ifdef and if clauses from here and the test file to enable this on other platforms once alert double-speaking and other unwanted side effects are fixed on said platforms.

Differential Revision: https://phabricator.services.mozilla.com/D97584
2020-12-02 20:54:41 +00:00
Eitan Isaacson d32f05448a Bug 1679957 - Text range from accessible should return inner offsets for hypertexts. r=morgan
XUL documents have a bunch of non-hypetext accessibles in their heirarchy. So you can't assume that a hyperlink's parent is a hypertext. To get around that, when we construct ranges for elements they should be internal ranges when possible.

Differential Revision: https://phabricator.services.mozilla.com/D98394
2020-12-01 23:24:17 +00:00
Eitan Isaacson 30e07c3569 Bug 1413307 - Dispatch AXValueChanged on checkbox/radio state changes. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D98260
2020-12-01 09:29:56 +00:00
Eitan Isaacson c86df09ea1 Bug 1679075 - Don't go past empty input field in HyperTextIterator::Next. r=morgan
The normalize function was putting the current container/offset past the end boundary. This caused overruns with getting the text for the range of the input object, and some unexpected invalid ranges.

Differential Revision: https://phabricator.services.mozilla.com/D98236
2020-11-30 20:46:15 +00:00
Morgan Reschenberg f8e270839e Bug 1649714: Remove menuPopUp's ignore parent for XUL comboboxes and combobox lists. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D97471
2020-11-22 22:14:53 +00:00
Eitan Isaacson 1624b5c00a Bug 1675301 - Don't return web area as result when searching backwards from root group. r=morgan
It seems that VO mistakenly thinks the web area is a descendant of itself. This causes all kinds of cyclical parent child relationships that makes VO over-query us.

This patch remedies that by not returning the web area when do an immediate child search starting from the root group - in any direction.

Differential Revision: https://phabricator.services.mozilla.com/D97819
2020-11-21 04:14:44 +00:00
Eitan Isaacson cf517da0a4 Bug 1676662 - Prepend list bullet when getting range at start of list item. r=morgan
Safari has an inconsistent way to deal with list bullets in text.
If a given range has a list or list item nested inside it - but it is not
at the beginning, the bullet will not be returned as part of the text.But if the range begins at the start
of a list item, the preceding bullet is included. For example, given the following list:

* First Item
* Second Item

If the range is [irst Item], the text for that range should return as "irst Item",
but if the range is [First it], the returned text is "* First it".

This patch emulates that inconsistency by removing the list item considerations
in the text segments iterator, and instead prepending a bullet if needed.

Differential Revision: https://phabricator.services.mozilla.com/D97717
2020-11-21 04:14:08 +00:00
Eitan Isaacson 9fc76e7928 Bug 1672700 - Make mozTextAccessible attribute getters use GeckoTextMarker. r=morgan
This allows `contenteditable` textboxes to work correctly with flattened text values.

The attribute setters, aside from AXValue, don't work in Chrome or Safari with aria textboxes,
so those are not a high priority. These include:
- AXSelectedText
- AXSelectedTextRange
- AXVisibleCharacterRange

In addition, AXVisibleCharacterRange's getter doesn't function as expected in Chrome or Safari either, so I didn't touch it.

Differential Revision: https://phabricator.services.mozilla.com/D97629
2020-11-21 04:13:45 +00:00
Bogdan Tara 6387fb5923 Backed out changeset 612035c577d2 (bug 1649714) for browser_popupbutton.js failures CLOSED TREE
DONTBUILD
2020-11-20 09:16:18 +02:00
Morgan Reschenberg 7814f780f3 Bug 1649714: Remove menuPopUp's ignore parent for XUL comboboxes and combobox lists. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D97471
2020-11-20 06:13:43 +00:00
Morgan Reschenberg 944f8f156b Bug 1649711: Map rich list box item to selectable acc class r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D96906
2020-11-16 18:27:26 +00:00
Eitan Isaacson 673de157fa Bug 1198336 - P4: Post AXLiveRegionChanged when live regions change. r=morgan
VoiceOver seems to do all the heavy lifting of figuring out what portion of the
live region should be read.

Depends on D96293

Differential Revision: https://phabricator.services.mozilla.com/D96294
2020-11-16 20:16:52 +00:00
Eitan Isaacson 5eee7bf4ed Bug 1198336 - P3: Implement AXLiveRegionSearchKey. r=morgan
I think VoiceOver uses this to pull in all live regions so it
can check for deletions when they change later on.

Depends on D96292

Differential Revision: https://phabricator.services.mozilla.com/D96293
2020-11-16 20:16:44 +00:00
Eitan Isaacson 56f38afb59 Bug 1198336 - P2: Implement live region AX attributes and AXLiveRegionCreated notification. r=morgan
We use an ivar boolean flag to cache the existance of a live region. This lets us
hide the live region AX attributes and avoid sync round trips to content.

Depends on D96291

Differential Revision: https://phabricator.services.mozilla.com/D96292
2020-11-16 20:16:41 +00:00
Eitan Isaacson df739e1daf Bug 1198336 - P1: Introduce live region added/removed events. r=Jamie,morgan
VoiceOver pre-caches live region data and does its own deltas to
know what to parts of a subtree changed, and what to announce
based on AXARIAAtomic and AXARIARelevant.

I added a removed event as well. This will help us cache a "live region"
flag in the main process and avoid sync round trips for attributes when not needed.

Differential Revision: https://phabricator.services.mozilla.com/D96291
2020-11-16 20:16:33 +00:00
Butkovits Atila 119d8f1aa7 Backed out 4 changesets (bug 1198336) for bustage on rules.mk. CLOSED TREE
Backed out changeset 26ad5bb8e1ed (bug 1198336)
Backed out changeset 852dc98e8cf5 (bug 1198336)
Backed out changeset 823511f4191b (bug 1198336)
Backed out changeset 67f5a42ed170 (bug 1198336)
2020-11-13 11:06:12 +02:00
Eitan Isaacson b538315d73 Bug 1198336 - P4: Post AXLiveRegionChanged when live regions change. r=morgan
VoiceOver seems to do all the heavy lifting of figuring out what portion of the
live region should be read.

Depends on D96293

Differential Revision: https://phabricator.services.mozilla.com/D96294
2020-11-13 03:49:11 +00:00
Eitan Isaacson 09d4370beb Bug 1198336 - P3: Implement AXLiveRegionSearchKey. r=morgan
I think VoiceOver uses this to pull in all live regions so it
can check for deletions when they change later on.

Depends on D96292

Differential Revision: https://phabricator.services.mozilla.com/D96293
2020-11-13 03:49:04 +00:00
Eitan Isaacson 7edd107586 Bug 1198336 - P2: Implement live region AX attributes and AXLiveRegionCreated notification. r=morgan
We use an ivar boolean flag to cache the existance of a live region. This lets us
hide the live region AX attributes and avoid sync round trips to content.

Depends on D96291

Differential Revision: https://phabricator.services.mozilla.com/D96292
2020-11-13 03:48:53 +00:00
Eitan Isaacson ae837aea6e Bug 1198336 - P1: Introduce live region added/removed events. r=Jamie,morgan
VoiceOver pre-caches live region data and does its own deltas to
know what to parts of a subtree changed, and what to announce
based on AXARIAAtomic and AXARIARelevant.

I added a removed event as well. This will help us cache a "live region"
flag in the main process and avoid sync round trips for attributes when not needed.

Differential Revision: https://phabricator.services.mozilla.com/D96291
2020-11-13 04:04:45 +00:00
Morgan Reschenberg dbc30ace84 Bug 1676878: Modify moxLabel to not strip first character for outlines r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D96895
2020-11-12 23:40:02 +00:00
Morgan Reschenberg e45400e5b3 Bug 1644810: Implement accessible subclasses for AXOutline and AXOutlineItem r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D96074
2020-11-12 06:16:58 +00:00
Csoregi Natalia 6ddec72329 Backed out 4 changesets (bug 1198336) for causing leaks. CLOSED TREE
Backed out changeset faa35ea77d35 (bug 1198336)
Backed out changeset 821f94bae182 (bug 1198336)
Backed out changeset ee78c1e8cc3b (bug 1198336)
Backed out changeset 2c56e36b869d (bug 1198336)
2020-11-12 01:46:52 +02:00
Eitan Isaacson 29037361ba Bug 1198336 - P4: Post AXLiveRegionChanged when live regions change. r=morgan
VoiceOver seems to do all the heavy lifting of figuring out what portion of the
live region should be read.

Differential Revision: https://phabricator.services.mozilla.com/D96294
2020-11-11 21:12:46 +00:00
Eitan Isaacson 5950c43ca4 Bug 1198336 - P3: Implement AXLiveRegionSearchKey. r=morgan
I think VoiceOver uses this to pull in all live regions so it
can check for deletions when they change later on.

Differential Revision: https://phabricator.services.mozilla.com/D96293
2020-11-11 21:12:33 +00:00
Eitan Isaacson 61086eeb1a Bug 1198336 - P2: Implement live region AX attributes and AXLiveRegionCreated notification. r=morgan
We use an ivar boolean flag to cache the existance of a live region. This lets us
hide the live region AX attributes and avoid sync round trips to content.

Differential Revision: https://phabricator.services.mozilla.com/D96292
2020-11-11 21:12:26 +00:00
Eitan Isaacson 4757842fcf Bug 1198336 - P1: Introduce live region added/removed events. r=Jamie,morgan
VoiceOver pre-caches live region data and does its own deltas to
know what to parts of a subtree changed, and what to announce
based on AXARIAAtomic and AXARIARelevant.

I added a removed event as well. This will help us cache a "live region"
flag in the main process and avoid sync round trips for attributes when not needed.

Differential Revision: https://phabricator.services.mozilla.com/D96291
2020-11-11 21:12:18 +00:00
Butkovits Atila 7c83560854 Backed out 4 changesets (bug 1198336) for bustages on rules.mk. CLOSED TREE
Backed out changeset 8399406e5f2e (bug 1198336)
Backed out changeset 7a2dbe67b6a6 (bug 1198336)
Backed out changeset fd45661dd659 (bug 1198336)
Backed out changeset 68cf7e4b16f2 (bug 1198336)
2020-11-11 02:40:30 +02:00
Eitan Isaacson eb929d7c1e Bug 1676509 - Remove AXTitle from list item groups. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D96632
2020-11-10 23:14:59 +00:00
Eitan Isaacson cf73c1aba7 Bug 1676517 - Improve MacAccessibility logging. r=morgan
We should log attribute setting or action performing. We also probably should log AXRole, AXSubrole, AXSize and AXPosition in debug mode, just verbose.

Differential Revision: https://phabricator.services.mozilla.com/D96635
2020-11-10 23:13:52 +00:00
Eitan Isaacson 75c203c933 Bug 1198336 - P4: Post AXLiveRegionChanged when live regions change. r=morgan
VoiceOver seems to do all the heavy lifting of figuring out what portion of the
live region should be read.

Differential Revision: https://phabricator.services.mozilla.com/D96294
2020-11-10 23:07:45 +00:00
Eitan Isaacson f40a9c9d15 Bug 1198336 - P3: Implement AXLiveRegionSearchKey. r=morgan
I think VoiceOver uses this to pull in all live regions so it
can check for deletions when they change later on.

Differential Revision: https://phabricator.services.mozilla.com/D96293
2020-11-10 23:07:38 +00:00
Eitan Isaacson 5a81554d4c Bug 1198336 - P2: Implement live region AX attributes and AXLiveRegionCreated notification. r=morgan
We use an ivar boolean flag to cache the existance of a live region. This lets us
hide the live region AX attributes and avoid sync round trips to content.

Differential Revision: https://phabricator.services.mozilla.com/D96292
2020-11-10 23:07:30 +00:00
Eitan Isaacson 85740d386d Bug 1198336 - P1: Introduce live region added/removed events. r=Jamie,morgan
VoiceOver pre-caches live region data and does its own deltas to
know what to parts of a subtree changed, and what to announce
based on AXARIAAtomic and AXARIARelevant.

I added a removed event as well. This will help us cache a "live region"
flag in the main process and avoid sync round trips for attributes when not needed.

Differential Revision: https://phabricator.services.mozilla.com/D96291
2020-11-10 23:07:20 +00:00
Eitan Isaacson cbc4bcfaba Bug 1675292 - Add 'application' root group when body gets role of application. r=morgan
Both chrome and safari preserve the AXWebArea with no subroles, and apply the application subrole to the root group. Not doing so apparently breaks web applications badly.

Differential Revision: https://phabricator.services.mozilla.com/D96475
2020-11-10 17:49:01 +00:00
smolnar 17d3157e82 Backed out 1 changesets (bug 1675292) for causing failures in browser_roles_elements. CLOSED TREE DONTBUILD
Backed out changeset f4cdad3fae02 (bug 1675292)
2020-11-10 09:12:15 +02:00
Eitan Isaacson 6ac3c7496b Bug 1675292 - Add 'application' root group when body gets role of application. r=morgan
Both chrome and safari preserve the AXWebArea with no subroles, and apply the application subrole to the root group. Not doing so apparently breaks web applications badly.

Differential Revision: https://phabricator.services.mozilla.com/D96475
2020-11-09 23:53:00 +00:00
Eitan Isaacson e8112d4ccd Bug 1672694 - P2: Don't fire AXSelectedTextChanged if target is not selectable. r=morgan
This causes VoiceOver to mess with `AXFocused` and as a result redirect the VO cursor.

Differential Revision: https://phabricator.services.mozilla.com/D95784
2020-11-09 17:55:20 +00:00
Eitan Isaacson 03f2c847ea Bug 1674273 - Consider a hyperlink with no hypertext parent as a root. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D95817
2020-11-09 17:06:44 +00:00
Razvan Maries fd7d890c94 Backed out 2 changesets (bug 1672694) for Lint failures on browser_text_selection.js and perma failures on browser_accessibility_node.js. CLOSED TREE
Backed out changeset 0f340ea56805 (bug 1672694)
Backed out changeset b222e4ff438f (bug 1672694)
2020-11-04 03:15:17 +02:00
Eitan Isaacson f80fe575c5 Bug 1672694 - P2: Don't fire AXSelectedTextChanged if target is not selectable. r=morgan
This causes VoiceOver to mess with `AXFocused` and as a result redirect the VO cursor.

Differential Revision: https://phabricator.services.mozilla.com/D95784
2020-11-04 00:26:27 +00:00
Eitan Isaacson 33d5e972fd Bug 1674196 - Don't return children columns in layout tables. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D95228
2020-10-30 04:42:18 +00:00
Eitan Isaacson ef1779b14c Bug 1672776 - Return nil TextMarker(Range) if GeckoTextMarker(Range) is invalid. r=morgan
It seems like the GeckoTextMarker::Range can sometimes return invalid ranges.
We need to check if they are valid or not before marshalling them.

Differential Revision: https://phabricator.services.mozilla.com/D95230
2020-10-30 04:41:20 +00:00
Eitan Isaacson 617e00d069 Bug 1672803 - Add AXMozDebugDescription and override NSObject description when logging. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D94473
2020-10-28 20:22:02 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Eitan Isaacson 0e6061d30d Bug 1672243 - Introduce AXIndexForChildUIElement and implement AXTopLevelUIElement. r=MarcoZ
AXTopLevelUIElement is not really testable because it doesn't give a useful result in
headless mode. Since it is a clone of AXWindow, this shouldn't be much of an issue.

Differential Revision: https://phabricator.services.mozilla.com/D94154
2020-10-22 17:12:39 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Morgan Reschenberg c5ff480218 Bug 1668101: Support same/different type naviagation with VO r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D91833
2020-10-15 16:42:14 +00:00
Eitan Isaacson 2e476d423a Bug 1671049 - Invalidate cached ARIA role and role in mozAccessible when role changes. r=morgan
Besides the ARIA role invalidation, this fixes an issue where the mozAccessible's role is also incorrect when the aria role changes on a body tag.

Depends on D93439

Differential Revision: https://phabricator.services.mozilla.com/D93440
2020-10-14 00:04:49 +00:00
Eitan Isaacson c548ecd683 Bug 1671049 - Cache proxy ARIA role in mozAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D93439
2020-10-14 00:04:54 +00:00
Eitan Isaacson 7a572196df Bug 1669821 - Implement search predicate API on virtual root. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92820
2020-10-07 20:34:21 +00:00
Eitan Isaacson f050b91638 Bug 1669599 - Support AXEditableAncestor and make it text event target. r=morgan
Depends on D92689

Differential Revision: https://phabricator.services.mozilla.com/D92690
2020-10-07 00:13:34 +00:00
Eitan Isaacson c173a1f486 Bug 1669596 - Allow subdoc GeckoTextMarker to be demarshalled in top document. r=morgan
Depends on D92688

Differential Revision: https://phabricator.services.mozilla.com/D92689
2020-10-06 23:31:32 +00:00
Eitan Isaacson 16d2fdfadc Bug 1669595 - Use top AXWebArea as text event source. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92688
2020-10-07 18:38:52 +00:00
Eitan Isaacson 029b948f0c Bug 1668958 - Don't wrap to first word when getting right word at end of input. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92310
2020-10-06 22:19:13 +00:00
Eitan Isaacson 10dfa8214c Bug 1668936 - Return element when calling AXUIElementForTextMarker in entry. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92309
2020-10-06 22:19:11 +00:00
Eitan Isaacson 7293c05ee8 Bug 1668933 - Fix get previous marker outside of entry. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92308
2020-10-06 22:19:03 +00:00
Eitan Isaacson bacf4042da Bug 1668961 - Avoid 2 IPC round trips in moxStringForTextMarkerRange. r=morgan
The state checking can happen in the iterator in HyperTextAccessibleWrap.

Differential Revision: https://phabricator.services.mozilla.com/D92307
2020-10-06 22:18:56 +00:00
Morgan Reschenberg bff9a869c8 Bug 1666380: Add support for AXTextFieldSearchKey to VO rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90941
2020-10-06 18:50:31 +00:00
Eitan Isaacson 68fd6a3f35 Bug 1669359 - Fix GeckoTextMarker lesser-than operator. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92511
2020-10-06 17:24:19 +00:00
Eitan Isaacson 7ae60f9637 Bug 1669294 - Add debug description attributes for text marker and range. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92472
2020-10-05 21:58:57 +00:00
Morgan Reschenberg 75caa1c350 Bug 1668655: Add support for AXGraphicSearchKey r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D92144
2020-10-05 19:52:15 +00:00
Morgan Reschenberg 3445c53c34 Bug 1668653: Add support for navigating by heading level with VO r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D92136
2020-10-05 19:52:15 +00:00
Morgan Reschenberg 8ea7a5cbaf Bug 1668663: Add support for navigation by blockquote r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D92145
2020-10-05 19:52:09 +00:00
Eitan Isaacson 96fe811eb7 Bug 1668142 - Support AXDirectionPrevious in rotor with no start element. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D91878
2020-10-02 16:33:42 +00:00
Eitan Isaacson e3bbc94ed8 Bug 1668137 - Use search root for rule's aDirectDescendantsFrom argument. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D91875
2020-10-02 16:33:34 +00:00
Butkovits Atila 6a98c9beb2 Backed out 2 changesets (bug 1668142, bug 1668137) for build bustage on MOXSearchInfo.mm. CLOSED TREE
Backed out changeset 05c9cc6dd872 (bug 1668142)
Backed out changeset 4c62dd862ae3 (bug 1668137)
2020-10-02 03:53:25 +03:00
Eitan Isaacson 34f9d53bb7 Bug 1668142 - Support AXDirectionPrevious in rotor with no start element. r=morgan
Depends on D91875

Differential Revision: https://phabricator.services.mozilla.com/D91878
2020-10-01 18:55:57 +00:00
Eitan Isaacson f4182287b4 Bug 1668137 - Use search root for rule's aDirectDescendantsFrom argument. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D91875
2020-10-01 18:56:52 +00:00
Morgan Reschenberg 671ed0bc10 Bug 1665960: Add AXStaticTextSearchKey support r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90746
2020-09-29 23:39:49 +00:00
Eitan Isaacson 474e7874b9 Bug 1667262 - Add AXStyleTextMarkerRangeForTextMarker. r=morgan
Depends on D91357

Differential Revision: https://phabricator.services.mozilla.com/D91850
2020-09-29 23:25:35 +00:00
Eitan Isaacson a77a63afc1 Bug 1667218 - Introduce AXParagraphTextMarkerRangeForTextMarker. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D91357
2020-09-29 21:00:05 +00:00
Eitan Isaacson 1e470443ea Bug 1668100 - Make target root for AXUIElementsForSearchPredicate. r=morgan
Instead of having the web area be the implicit root, the search results should
exclusively be descendants of the target element that the search is called on.

Differential Revision: https://phabricator.services.mozilla.com/D91826
2020-09-29 20:49:29 +00:00
Morgan Reschenberg 1c31973d81 Bug 1666356: Add support for AXCheckboxSearchKey to VO rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D91169
2020-09-29 18:48:34 +00:00
Morgan Reschenberg c1ac0d9327 Bug 1666357: Add AXRadioGroupSearchKey support to VO rotor
Differential Revision: https://phabricator.services.mozilla.com/D90922
2020-09-28 22:32:05 +00:00
Morgan Reschenberg 39d40dbb3f Bug 1667174: Create RotorRule base class to abstract checks duplicated across current rotor rules r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D91325
2020-09-28 22:32:07 +00:00
Cosmin Sabou 25fe081468 Backed out 3 changesets (bug 1665962, bug 1666357, bug 1667174) for OS X bustages on MOXSearchInfo.mm and conflicts on browser_rotor.js. CLOSED TREE
Backed out changeset 495a69dcd720 (bug 1665962)
Backed out changeset 9cdbf4e04e19 (bug 1666357)
Backed out changeset 0d9d32b08317 (bug 1667174)
2020-09-28 22:18:32 +03:00
Morgan Reschenberg 11491354e7 Bug 1666357: Add AXRadioGroupSearchKey support to VO rotor
Differential Revision: https://phabricator.services.mozilla.com/D90922
2020-09-28 18:16:10 +00:00
Morgan Reschenberg b9b1c5400f Bug 1667174: Create RotorRule base class to abstract checks duplicated across current rotor rules r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D91325
2020-09-28 18:16:10 +00:00
Razvan Maries e146bab5ce Backed out 4 changesets (bug 1665962, bug 1666356, bug 1666380, bug 1665960) for perma failure on browser_content_tree.js and browser_treeupdate_list.js. CLOSED TREE
Backed out changeset 29f8600da112 (bug 1666380)
Backed out changeset f01adb0a0e05 (bug 1666356)
Backed out changeset bed1c58441de (bug 1665960)
Backed out changeset 65d6078a5314 (bug 1665962)
2020-09-24 22:18:08 +03:00
Morgan Reschenberg f42da71073 Bug 1666380: Add support for AXTextFieldSearchKey to VO rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90941
2020-09-23 21:19:31 +00:00
Morgan Reschenberg 1840888b31 Bug 1666356: Add support for AXCheckboxSearchKey to VO rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D91169
2020-09-23 21:20:08 +00:00
Morgan Reschenberg fd938aacbb Bug 1665960: Add AXStaticTextSearchKey support r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90746
2020-09-22 23:31:41 +00:00
Eitan Isaacson 1080fb58d3 Bug 1661760 - Part 3: Add line boundary support in mac. r=morgan
The left and right line getters don't seem to be used often by voiceover,
so I am not sure if they always return the expected result.

Differential Revision: https://phabricator.services.mozilla.com/D90938
2020-09-24 16:04:56 +00:00
Eitan Isaacson 10d6dd02bc Bug 1661760 - Part 1: Unify all range from offset methods to one. r=morgan,nika
There are at least 8 different methods for getting a range from an offset:
1. left word
2. right word
3. line
4. left line
5. right line
6. sentence
7. paragraph
8. range with same style.

Having a single wrapper and IPDL method for all of those with an enum would remove
a lot of redundancies.

Differential Revision: https://phabricator.services.mozilla.com/D90936
2020-09-24 16:04:41 +00:00
Morgan Reschenberg a5ce9d8bd3 Bug 1666348: Add support for AXListSearchKey to VO rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90917
2020-09-21 23:15:33 +00:00
Eitan Isaacson 4777d9b2a2 Bug 1661765 - Part 4: Implement AXSelectedTextMarkerRange setter. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90594
2020-09-21 22:00:08 +00:00
Eitan Isaacson fbf4b0085f Bug 1661765 - Part 3: Add attribute setters to text delegate. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90593
2020-09-21 21:56:33 +00:00
Eitan Isaacson 27d2aeab72 Bug 1661765 - Part 2: Add SelectRange method to IPC and accessible wrapper. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90592
2020-09-21 21:49:05 +00:00
Morgan Reschenberg 6ce7383455 Bug 1665761: Add support for AXImageSearchKey to rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90617
2020-09-18 19:37:58 +00:00
Morgan Reschenberg e9d522c25e Bug 1657505: Add support for AXFrameSearchKey to VO rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90625
2020-09-18 19:41:42 +00:00
Morgan Reschenberg 6be7d1da9a Bug 1657418: Add visited, unvisited links, regular links to rotor and AXLinkUIElements to web area. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D89668
2020-09-17 20:20:55 +00:00
Csoregi Natalia 788bab9045 Backed out changeset 5b344e00670b (bug 1657418) for bustage on MOXWebAreaAccessible.mm. CLOSED TREE 2020-09-18 01:15:07 +03:00
Morgan Reschenberg c32c217f86 Bug 1657418: Add visited, unvisited links, regular links to rotor and AXLinkUIElements to web area. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D89668
2020-09-17 16:10:12 +00:00
Eitan Isaacson 1b2908ce30 Bug 1665162 - Add text leaf parameterized attributes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90304
2020-09-16 23:22:18 +00:00
Eitan Isaacson d9fae33f17 Bug 1620324 - Part 2: Make rotor API work with generated root group. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90175
2020-09-16 23:20:26 +00:00
Eitan Isaacson 6e730f2221 Bug 1620324 - Part 1: Add mac accessible intermediate root group when needed. r=morgan
When a doc does not have top-level DOM group, or consists of a single leaf,
we need to insert a generated root group. The rotor API expects this and uses
it for boundary detection.

Differential Revision: https://phabricator.services.mozilla.com/D90174
2020-09-16 23:20:24 +00:00
Dorel Luca 51527e88b4 Backed out changeset 770edab72eb0 (bug 1620324) for XPCshell failures. CLOSED TREE 2020-09-17 01:05:03 +03:00
Dorel Luca cef5008fd7 Backed out 4 changesets (bug 1665162, bug 1664522, bug 1620324) for XPCshell failures and build bustages. CLOSED TREE
Backed out changeset a31efbcf3ff5 (bug 1664522)
Backed out changeset c985209d3ced (bug 1665162)
Backed out changeset ea2f00c4049e (bug 1620324)
Backed out changeset 2ee894a67a93 (bug 1620324)
2020-09-17 00:55:33 +03:00
Eitan Isaacson aff0fbb702 Bug 1620324 - Build breakage followup. r=dluca. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D90474
2020-09-16 21:15:55 +00:00
Eitan Isaacson e90b4197f4 Bug 1665162 - Add text leaf parameterized attributes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90304
2020-09-16 20:24:17 +00:00
Eitan Isaacson b9f75d2671 Bug 1620324 - Part 2: Make rotor API work with generated root group. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90175
2020-09-16 20:20:10 +00:00
Eitan Isaacson e039e76c8f Bug 1620324 - Part 1: Add mac accessible intermediate root group when needed. r=morgan
When a doc does not have top-level DOM group, or consists of a single leaf,
we need to insert a generated root group. The rotor API expects this and uses
it for boundary detection.

Differential Revision: https://phabricator.services.mozilla.com/D90174
2020-09-16 20:20:00 +00:00
Morgan Reschenberg ff7cfb125b Bug 1664579: Add AXButtonSearchKey to rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D90135
2020-09-15 20:48:45 +00:00
Morgan Reschenberg 7ab65dda65 Bug 1662147: Add AXControlSearchKey to rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D89073
2020-09-15 16:42:34 +00:00
Razvan Maries 7c00a1f440 Backed out changeset 8c75a97a107c (bug 1662147) for perma failures on test_HTMLSpec.html. CLOSED TREE 2020-09-15 02:30:20 +03:00
Morgan Reschenberg b99c8c44b6 Bug 1662147: Add AXControlSearchKey to rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D89073
2020-09-14 21:22:50 +00:00
Eitan Isaacson 1616ae4612 Bug 1661758 - Part 4: Implement AXUIElementForTextMarker. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89066
2020-09-11 05:08:00 +00:00
Eitan Isaacson 237178d7dd Bug 1661758 - Part 3: Implement AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89065
2020-09-11 05:07:52 +00:00
Brindusan Cristian c5f2ef7f15 Backed out 5 changesets (bug 1661758) for build bustages on GeckoTextMarker.h.
Backed out changeset 9b086da1f8f1 (bug 1661758)
Backed out changeset 8def1d51ae3d (bug 1661758)
Backed out changeset 17532cdc54ae (bug 1661758)
Backed out changeset be0ea9159b11 (bug 1661758)
Backed out changeset 2ca136e7d279 (bug 1661758)
2020-09-11 02:16:49 +03:00
Eitan Isaacson debfb84ee9 Bug 1661758 - Part 4: Implement AXUIElementForTextMarker. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89066
2020-09-10 21:52:35 +00:00
Eitan Isaacson 0ced3240bb Bug 1661758 - Part 3: Implement AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89065
2020-09-10 21:52:28 +00:00
Eitan Isaacson b09be5d2f7 Bug 1663442 - Check markers are valid in get range from unordered markers. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89482
2020-09-09 20:43:35 +00:00
Razvan Maries 36c66bc87b Backed out changeset 9373c57ebcbe (bug 1663442) for perma failures on browser_text_basics.js. CLOSED TREE 2020-09-09 22:41:16 +03:00
Eitan Isaacson 80bafc6677 Bug 1663442 - Check markers are valid in get range from unordered markers. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89482
2020-09-09 16:20:46 +00:00
Morgan Reschenberg 4b9df7104c Bug 1662150: Add AXTableSearchKey to rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D88892
2020-09-01 22:12:55 +00:00
Morgan Reschenberg 75065bec8a Bug 1662262: Move and modify mac pivot rules for better granularity r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D86611
2020-09-01 22:12:55 +00:00
Morgan Reschenberg c5126eab79 Bug 1661504: Introduce MOXLandmarkAccessible class and AXLandmarkSearchKey r=eeejay"
Differential Revision: https://phabricator.services.mozilla.com/D88445
2020-08-31 18:36:48 +00:00
Eitan Isaacson b07025169e Bug 1661579 - Use previous frame when searching backwards at start of frame. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D88489
2020-08-28 17:55:04 +00:00
Eitan Isaacson 0a7569bfd1 Bug 1655784 - Return correct collapsed selection range on inputs. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D88502
2020-08-28 17:22:32 +00:00
Eitan Isaacson 42fa537b50 Bug 1661587 - Assert if there is no native widget only when not in headless mode. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D88493
2020-08-27 22:22:12 +00:00
Eitan Isaacson c4d362acce Bug 1660364 - Add marker index support. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D88077
2020-08-27 20:06:51 +00:00
Eitan Isaacson 2a6f71babd Bug 1660906 - Introduce .clang-format file for Objective C rules. r=morgan
I also altered the mode line in all the file headers so that editors use the correct syntax features.

Differential Revision: https://phabricator.services.mozilla.com/D88081
2020-08-25 21:40:32 +00:00
Eitan Isaacson 2a5c410bc2 Bug 1660303 - Remove list bullets from text marker navigation. r=Jamie
We need to navigate past bullets when moving markers by character or word,
but we need to still include bullets when retrieving the string of a given
marker range.

Differential Revision: https://phabricator.services.mozilla.com/D87813
2020-08-24 21:07:14 +00:00
Eitan Isaacson bdd3a676c4 Bug 1660290 - Robustify text marker reverse iteration. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D87797
2020-08-24 21:07:10 +00:00
Morgan Reschenberg a37d79921f Bug 1658832: Add AXArticleSearchKey to MOXSearchInfo class. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D86869
2020-08-14 23:03:50 +00:00
Eitan Isaacson 4b2ca1f36a Bug 1660109 - Support get bounds for text marker range. r=Jamie
Depends on D87669

Differential Revision: https://phabricator.services.mozilla.com/D87670
2020-08-20 22:12:23 +00:00
Eitan Isaacson 62494de24f Bug 1659215 - Re-expose text attributes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D87149
2020-08-14 23:18:02 +00:00
Eitan Isaacson ea71c11994 Bug 1657765 - Alter GeckoTextMarker to use new IPDL calls. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D86607
2020-08-14 19:33:02 +00:00
Eitan Isaacson 3dcf7fa7ab Bug 1657765 - Add HyperTextAccessibleWrap for Mac. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D86605
2020-08-14 19:31:50 +00:00
Eitan Isaacson 00eb0ff041 Bug 1658427 - Add mac accessibility logging. r=morgan
This uses the Gecko logging framework. To get debug logs set MOZ_LOG to
"MacAccessibility:4". To get verbose logging, set it to "MacAccessibility:5".

Differential Revision: https://phabricator.services.mozilla.com/D86618
2020-08-10 22:39:42 +00:00
Morgan Reschenberg e0063096cd Bug 1652809: Add rotor mochitest for headings. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D85917
2020-08-07 16:54:36 +00:00
Morgan Reschenberg e4bdad9acd Bug 1657665: Filter pivot matches for which there is no corresponding native accessible. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D86264
2020-08-06 21:42:03 +00:00
Eitan Isaacson b17f3f72ed Bug 1635722 - Hide text marker range attributes that hammer IPC. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D86230
2020-08-06 16:42:45 +00:00
Eitan Isaacson a429319a6b Bug 1657193 - Bail early if we detect tree corruption when building a string. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D85909
2020-08-04 21:06:12 +00:00
Morgan Reschenberg 4148549840 Bug 1652809: Add heading attributes to rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D83673
2020-08-04 21:00:25 +00:00
Dorel Luca 03794edd6e Merge autoland to mozilla-central. a=merge 2020-07-31 12:45:12 +03:00
Morgan Reschenberg b788945f30 Bug 1652809: Create search class for querying rotor elements r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D83672
2020-07-30 22:17:41 +00:00
Eitan Isaacson 80f99b2bcb Bug 1654603 - Support text entry in contenteditable nested nodes. r=morgan
VoiceOver expects text value change events to originate from the editable ancestor.

Differential Revision: https://phabricator.services.mozilla.com/D85050
2020-07-27 22:20:06 +00:00
Eitan Isaacson 1c1c047771 Bug 1655779 - Check that range is valid before getting its string. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D85179
2020-07-28 16:02:20 +00:00
Eitan Isaacson 70a126786a Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-27 21:08:20 +00:00
Mihai Alexandru Michis 13e26846d7 Backed out changeset 47667fbae734 (bug 1654679) for causing failures in browser_text_input.js 2020-07-24 03:16:52 +03:00
Eitan Isaacson fd819b55c1 Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-23 21:31:35 +00:00
Dorel Luca 784df221cc Backed out changeset 8848caa5b125 (bug 1654679) for Browser-chrome failures in accessible/tests/browser/mac/browser_text_input.js. CLOSED TREE 2020-07-23 20:44:22 +03:00
Eitan Isaacson c4c117984b Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-23 16:29:19 +00:00
Bogdan Tara c61d07ee89 Backed out changeset 290c72f07e0c (bug 1654679) for es lint failure on browser_text_input.js CLOSED TREE 2020-07-23 09:05:54 +03:00
Eitan Isaacson 089db2c536 Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-23 04:52:00 +00:00
Eitan Isaacson 6233e4868e Bug 1654601 - Ensure given text marker is valid in public API. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D84567
2020-07-22 18:08:10 +00:00
Eitan Isaacson 8216f98213 Bug 1653421 - Part 5: Add xpc mac event interface so we can include data. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84057
2020-07-21 23:03:02 +00:00
Eitan Isaacson 42dcf89b84 Bug 1653421 - Part 4: Pass data with text value change events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84056
2020-07-21 23:03:00 +00:00
Eitan Isaacson 1d2bd5cd78 Bug 1653421 - Part 3: Don't normalize marker beyond editable root. r=morgan
When in an editable container, text markers are expected to not go past or before the editable root.

Differential Revision: https://phabricator.services.mozilla.com/D84055
2020-07-21 23:02:57 +00:00
Eitan Isaacson c52b49a014 Bug 1653421 - Part 2: Add attributed string for range getter. r=morgan
This doesn't actually add any attributes yet.
VoiceOver uses this instead of the plain string equivalent.

Differential Revision: https://phabricator.services.mozilla.com/D84054
2020-07-21 23:02:55 +00:00
Eitan Isaacson 66653fbad1 Bug 1653421 - Part 1: Refactor AccessibleWrap event handling. r=morgan
I split the switch statement into two: the first switch determines the
MOX target accessible. The second one does all the rest. This makes it more
readable and scalable when we add more events that need to be accompanied with
data.

Differential Revision: https://phabricator.services.mozilla.com/D84053
2020-07-21 23:02:53 +00:00
Morgan Reschenberg a707c0c636 Bug 1643765: Add moxUnignoredChildren getter to MOXAccessibleBase r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80983
2020-07-21 20:41:55 +00:00
Eitan Isaacson cfcad506f6 Bug 1628236 - Add cell getter and column headers attribute to tables. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84249
2020-07-21 20:58:36 +00:00
Dorel Luca 560f272fda Backed out changeset a83d85107142 (bug 1628236) for OSX build bustage on mozTableAccessible.h. CLOSED TREE 2020-07-21 22:49:30 +03:00
Eitan Isaacson a024bafebe Bug 1628236 - Add cell getter and column headers attribute to tables. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84249
2020-07-21 16:43:28 +00:00
Eitan Isaacson 906483c74e Bug 1653039 - Add word at marker APIs. r=morgan
This patch adds several new parameters:
* AXLeftWordTextMarkerRangeForTextMarker
* AXRightWordTextMarkerRangeForTextMarker
* AXStartTextMarkerForTextMarkerRange
* AXEndTextMarkerForTextMarkerRange
* AXNextTextMarkerForTextMarker
* AXPreviousTextMarkerForTextMarker

Our word boundaries API is pretty buggy. Instead of trying to
resolve or triage each issue I found, I added todo tests
for them.

Differential Revision: https://phabricator.services.mozilla.com/D83680
2020-07-20 22:53:04 +00:00
Bogdan Tara 92d6c2f06f Backed out changeset 8d3a31f6fcd6 (bug 1643765) by morgan's request CLOSED TREE 2020-07-08 19:57:22 +03:00
Morgan Reschenberg 22c2b06956 Bug 1643765: Add moxUnignoredChildren getter to MOXAccessibleBase r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80983
2020-07-06 19:24:19 +00:00
Razvan Maries 3b7f8e576f Backed out changeset e7c1f66e9ff4 (bug 1643765) for build bustages on MOXAccessibleProtocol.h. CLOSED TREE 2020-07-06 21:02:44 +03:00
Morgan Reschenberg 1a49e563e3 Bug 1643765: Add moxUnignoredChildren getter to MOXAccessibleBase r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80983
2020-07-06 17:31:15 +00:00
Eitan Isaacson 8b130be2bb Bug 1226473 - Support AXSelectedTextMarkerRange. r=morgan
To do this well we need to cache the text selection in the top level process.

Differential Revision: https://phabricator.services.mozilla.com/D82111
2020-07-06 17:32:45 +00:00
Eitan Isaacson e1559a9b24 Bug 1650740 - Don't allow text range retrieval when doc tree is not fully constructed. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D82410
2020-07-06 17:31:17 +00:00
Sylvestre Ledru caf785c695 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D82178
2020-07-04 09:38:43 +00:00
Eitan Isaacson 2f2f6eb3ee Bug 1649575 - Part 5: Implement string building for GeckoTextMarkerRange. r=morgan
This is a seperate patch because of the complexity.

Differential Revision: https://phabricator.services.mozilla.com/D81761
2020-07-02 21:57:55 +00:00
Eitan Isaacson ebff8f5ad8 Bug 1649575 - Part 4: Introduce GeckoTextMarker and GeckoTextMarkerRange. r=morgan
These classes do a few things:
1. They implement and abstract common text operations, for example:
 (a) comparing two markers to know which one precedes the other.
 (b) text retrieval for ranges
 (c) geometric bounds for ranges
 (d) etc.
2. They can be converted to and from AXTextMarker(Range)s. Since the AXTextMarker
should not contain a raw pointer since there is a potential for use-after-free,
we need to lookup the referenced accessible in its document to know that it still exists.

Note: mozTextAccessible got pushed to another unified source file, so we need to
declare some stuff for it. Ideally we would be detecting these kinds of things sooner.

Differential Revision: https://phabricator.services.mozilla.com/D81760
2020-07-02 21:35:05 +00:00
Eitan Isaacson 7c21778bfd Bug 1649575 - Part 3: Introduce MOXTextMarkerDelegate. r=morgan
The delegate is associated with accessible documents (either local or remote).

I made a separate protocol for all the text marker stuff as it really is a seperate API.

Differential Revision: https://phabricator.services.mozilla.com/D81759
2020-07-02 21:33:07 +00:00
Eitan Isaacson 9abbad9091 Bug 1649217 - Part 2: Send isSelectionCollapsed for caret move in IPC. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81912
2020-07-02 18:08:52 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Morgan Reschenberg 4891a7b86e Bug 1630292: Enusre we don't create accessibles for linebreaks. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80986
2020-06-26 18:04:39 +00:00
Morgan Reschenberg 117fa600ac Bug 1642707: Add web area class and attributes r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80473
2020-06-26 04:00:49 +00:00
Eitan Isaacson cd63c02db9 Bug 1647828 - Block moxPerformPress selector on non-actionable nodes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D80712
2020-06-23 19:21:28 +00:00
Eitan Isaacson 31b2dc735d Bug 1643168 - block moxSetFocused: on non-focusable accessibles. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D78160
2020-06-10 17:34:30 +00:00
Dorel Luca 31ee7a3080 Backed out changeset 498dee65dcf8 (bug 1643168) for Browser-chrome failures browser/mac/browser_focus.js. CLOSED TREE 2020-06-08 20:28:05 +03:00
Eitan Isaacson 97fb862d37 Bug 1643168 - block moxSetFocused: on non-focusable accessibles. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D78160
2020-06-08 15:47:11 +00:00
Morgan Reschenberg 3083026d43 Bug 1641932: Add Mac subroles to role map. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D77500
2020-06-05 03:45:44 +00:00
Eitan Isaacson add69c1749 Bug 1642033 - Refactor mozTextAccessible to use MOX api. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77564
2020-06-03 21:15:43 +00:00
Zeke Medley 533e723a19 Bug 1642448 - Replace remaining NSAssert statements in accessible/mac/ with MOZ_ASSERT's. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77874
2020-06-02 20:40:37 +00:00
Eitan Isaacson c3aa4bdf8c Bug 1641984 - Implement MOX parameterized attribute getters. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77563
2020-06-02 04:57:14 +00:00
Ricky Stewart 0bbaac721b Bug 1641693 - Replace a bunch of uses of `GENERATED_FILES` with the `GeneratedFile` template r=necko-reviewers,geckoview-reviewers,aklotz,dragana,froydnj
Also update documentation to suggest using the `GeneratedFile` template rather than directly referencing `GENERATED_FILES` where possible.

Differential Revision: https://phabricator.services.mozilla.com/D77496
2020-06-01 16:00:28 +00:00
Morgan Reschenberg d93dd3ccbb Bug 1624909: Create and maintain radio siblings array for position information. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D72751
2020-05-29 17:37:46 +00:00
Eitan Isaacson 9aa6dd6524 Bug 1641665 - Remove NSAccessibility methods from mozTableAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77345
2020-05-28 23:06:42 +00:00
Eitan Isaacson 4a8cd9c1f8 Bug 1641659 - Remove NSAccessibility methods from mozActionElements. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77344
2020-05-28 23:02:52 +00:00
Eitan Isaacson a3ca2295dc Bug 1641657 - Remove NSAccessibility methods from mozRootAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77343
2020-05-28 22:41:30 +00:00
Eitan Isaacson d0f0c96f5e Bug 1641655 - Remove NSAccessibility methods from mozSelectableElements. r=morgan
A casualty of this is the "switch" action description for pressing tabs. That code
goes way back to our first Mac a11y support. WebKit and Chromium don't have it.

I tried to figure out when other browsers or apps had that with no luck.
Anyway, removing that description gives us the same behavior in VO as
WebKit and Chromium where there are no custom action description strings.

Differential Revision: https://phabricator.services.mozilla.com/D77342
2020-05-28 22:41:23 +00:00
Eitan Isaacson 11a255caf4 Bug 1641654 - Remove NSAccessibility methods from mozHTMLAccessible classes. r=morgan
A casualty of this is the ability to change listed attribute names on the fly.
I think this is the right choice in general and doesn't seem to affect VO.
If we run into a case where it does we should reconsider.

Differential Revision: https://phabricator.services.mozilla.com/D77341
2020-05-28 22:41:21 +00:00
Eitan Isaacson d13bf79114 Bug 1641644 - Remove most NSAccessibility methods from mozAccessible. r=morgan
Keeping accessibilityAttributeNames because it calls additionalAccessibilityAttributeNames
which is used by subclasses.

Differential Revision: https://phabricator.services.mozilla.com/D77335
2020-05-28 22:41:13 +00:00
Eitan Isaacson 9d2ffbbfee Bug 1641644 - Create MOXSummaryAccessible for summary element. r=morgan
This will make it easier to generalize mozAccessible.

Differential Revision: https://phabricator.services.mozilla.com/D77334
2020-05-28 22:41:06 +00:00
Eitan Isaacson 4970260cc9 Bug 1635521 - Create dedicated MathML MOX accessibles. r=morgan
This patch uses the new file/class naming convention.
Hopefully we will convert all of it in time.

Differential Revision: https://phabricator.services.mozilla.com/D77333
2020-05-28 22:41:04 +00:00
Narcis Beleuzu 0bb36c9ac1 Backed out changeset d2b10235d8ac (bug 1624909) for bustages on Pivot.h . CLOSED TREE 2020-05-29 07:05:21 +03:00
Morgan Reschenberg d013e0b775 Bug 1624909: Create and maintain radio siblings array for position information. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D72751
2020-05-28 15:53:01 +00:00
Razvan Maries 0b581d46a0 Backed out changeset 156d42f01488 (bug 1624909) for build bustages on Pivot.h. CLOSED TREE 2020-05-27 22:49:22 +03:00
Morgan Reschenberg c29473e265 Bug 1624909: Create and maintain radio siblings array for position information. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D72751
2020-05-27 19:23:32 +00:00
Eitan Isaacson b0be864424 Bug 1641002 - Map NSAccessibility API to MOXAccessible protocol. r=morgan
Add most attributes getters, setters and actions to prottocol,
autogenerate objective c dictionaries, and implement forwarding
logic from NSAccessibility methods.

Differential Revision: https://phabricator.services.mozilla.com/D76921
2020-05-27 17:26:38 +00:00
Eitan Isaacson 553616aa05 Bug 1641002 - Introduce MOXAccessible protocol and MOXAccessibleBase. r=morgan
This sets up the possibility of moving most non-gecko things to a base class, and
start a protocol to add for all the subclasses to implement as needed.

Differential Revision: https://phabricator.services.mozilla.com/D76920
2020-05-27 17:24:44 +00:00
Razvan Maries e44db87b99 Backed out changeset b4c58d9afd4b (bug 1624909) for build bustages on Pivot.h. CLOSED TREE 2020-05-27 21:04:58 +03:00