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

2618 Коммитов

Автор SHA1 Сообщение Дата
Morgan Reschenberg 2bc463ad54 Bug 1681292: Ensure menu items correctly expose AXVisibleChildren and AXChildren r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D99949
2021-01-07 21:33:21 +00:00
Morgan Reschenberg 29a8164b84 Bug 1680589: Make AXDisclosing settable on outline rows r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D101053
2021-01-07 21:29:27 +00:00
Eitan Isaacson c21730a605 Bug 1682985 - Support aria-busy with AXElementBusy and AXElementBusyChanged. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D100838
2021-01-06 17:23:45 +00:00
Eitan Isaacson 9e19999a57 Bug 1681909 - P3: Implement e10s post search filter and test. r=morgan
The test adds fission testing as well.

Differential Revision: https://phabricator.services.mozilla.com/D100732
2021-01-05 20:35:37 +00:00
Eitan Isaacson c2532de498 Bug 1680329 - Add AXTextStateChangeType to selection events. r=morgan
It seems that VoiceOver depends on that property to know if a selection is be extended or moved. This manifests in several places in Slack when the user combines VO navigation with Slack's keyboard navigation.

Also changed where we retrieve the editable ancestor to simplify the notification dispatching block.

Differential Revision: https://phabricator.services.mozilla.com/D100452
2021-01-04 22:37:46 +00:00
Eitan Isaacson 837de2aca3 Bug 1682692 - (re)insert child after previous sibling, not previous insertion candidate. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D99849
2020-12-16 09:48:29 +00:00
Marco Zehe c191381e18 Bug 1682247 - Post an AXTitleChanged notification if the Mac layer is notified of a name change event, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D99664
2020-12-16 06:49:57 +00:00
Peter Van der Beken fe6597a730 Bug 1668658 - Switch annotations for tests failing with session history in parent from fission.autoStart to fission.sessionHistoryInParent. r=smaug,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D99667
2020-12-15 15:21:40 +00:00
pbz ec5f7cebca Bug 1639218 - Remove prompts.tab_modal.enabled pref. r=marionette-reviewers,johannh
Differential Revision: https://phabricator.services.mozilla.com/D97598
2020-12-14 14:19:54 +00:00
Cristina Coroiu edd1803ffc Backed out changeset ca41e6b53c94 (bug 1639218) for mochitest failures at toolkit/components/prompts/test/test_bug619644.html on a CLOSED TREE 2020-12-14 13:20:14 +02:00
pbz 40d51245b4 Bug 1639218 - Remove prompts.tab_modal.enabled pref. r=marionette-reviewers,johannh
Differential Revision: https://phabricator.services.mozilla.com/D97598
2020-12-11 13:48:40 +00:00
Eitan Isaacson f248fdbd3a Bug 1680277 - 3/3: Use AXTextArea for multiline and aria text boxes. r=morgan,MarcoZ
By spec, it would need to be an area for aria-multiline=true and a field for aria-multiline=false. Chrome seems to assign all aria text boxes to areas. For some reason this allows VO to recognize links when editing. Webkit doesn't need this, for some reason and can get links announces in AXTextField as well.

Depends on D99312

Differential Revision: https://phabricator.services.mozilla.com/D99313
2020-12-11 10:29:15 +00:00
Eitan Isaacson e4ae2df9df Bug 1680277 - 2/3: Use previous offset for calculating element at marker. r=morgan
This is consistent with how WebKit does it: if offset is between two accessibles,
return the previous one.

Differential Revision: https://phabricator.services.mozilla.com/D99312
2020-12-11 05:10:52 +00:00
Eitan Isaacson b65404fb2c Bug 1680277 - 1/3: Add editable and focusable ancestor getters. r=morgan
For focusable ancestor, just use editable ancestor since the IPC toll
on finding closest focusable ancestor isn't worth it.

Differential Revision: https://phabricator.services.mozilla.com/D99311
2020-12-11 05:10:44 +00:00
Dorel Luca cab44f4e66 Backed out 3 changesets (bug 1680277) for Browser-chrome failures in browser/mac/browser_rotor.js. CLOSED TREE
Backed out changeset 4ad2bcdda94c (bug 1680277)
Backed out changeset bb00472c7a1f (bug 1680277)
Backed out changeset 5bbfaf673d39 (bug 1680277)
2020-12-11 04:21:45 +02:00
Eitan Isaacson 64d2a266cd Bug 1680277 - 3/3: Use AXTextArea for multiline and aria text boxes. r=morgan
By spec, it would need to be an area for aria-multiline=true and a field for aria-multiline=false. Chrome seems to assign all aria text boxes to areas. For some reason this allows VO to recognize links when editing. Webkit doesn't need this, for some reason and can get links announces in AXTextField as well.

Depends on D99312

Differential Revision: https://phabricator.services.mozilla.com/D99313
2020-12-10 19:00:05 +00:00
Eitan Isaacson d19edae3f4 Bug 1680277 - 2/3: Use use previous offset for calculating element at marker. r=morgan
This is consistent with how WebKit does it: if offset is between two accessibles,
return the previous one.

Depends on D99311

Differential Revision: https://phabricator.services.mozilla.com/D99312
2020-12-10 18:24:58 +00:00
Eitan Isaacson 2020ec8b53 Bug 1680277 - 1/3: Add editable and focusable ancestor getters. r=morgan
For focusable ancestor, just use editable ancestor since the IPC toll
on finding closest focusable ancestor isn't worth it.

Differential Revision: https://phabricator.services.mozilla.com/D99311
2020-12-10 23:47:01 +00:00
Morgan Reschenberg b96b198d6d Bug 1649720: Ensure XUL trees expose their internal columns to VoiceOver r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D97227
2020-12-10 00:15:38 +00:00
Razvan Maries ffdb6a4d93 Backed out changeset 8a7e15d51a4c (bug 1649720) for perma failures on browser_outline_xul.js. CLOSED TREE 2020-12-09 01:35:04 +02:00
Morgan Reschenberg 27bc6bee14 Bug 1649720: Ensure XUL trees expose their internal columns to VoiceOver r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D97227
2020-12-08 19:33:34 +00:00
Eitan Isaacson d1d2546744 Bug 1625178 - Support aria-roledescription in mac. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D98669
2020-12-03 20:39:39 +00:00
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
Eitan Isaacson e3785d17c1 Bug 1672700 - Refactor mac input test. r=morgan
This also irons out some event syncing issues. We need to wait for selection changes in the future patch in order to take advantage of selection caching.

Differential Revision: https://phabricator.services.mozilla.com/D97628
2020-11-21 04:13:43 +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
Tim Nguyen 082c712f75 Bug 1525737 - Remove/replace usages of XUL grid display values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53300
2020-11-17 01:20:34 +00:00
David Parks 49d0332fb2 Bug 1675349: Update tests under accessible/tests/mochitest to reflect the removal of plugins. r=jmathies
UPDATED
-------
accessible/tests/mochitest/elm/test_HTMLSpec.html
Bug 905215
Test that a11y shadow DOM gets objects of the right type and state from HTML dom.
Changed <object> and <embed> plugin tests to find no accessible.

accessible/tests/mochitest/elm/test_MathMLSpec.html
Bug 1001634
Basic MathML a11y tests.  Didn't use plugin, just initializes it.
Remove plugin initialization.

accessible/tests/mochitest/elm/test_plugin.html
Test that a11y shadow tree gets proper type/state for plugin objects and their subtrees, even if there is an HTML fallback provided.
Removed.

accessible/tests/mochitest/focus/test_takeFocus.html
Bug 677467
Test that a11y shadow tree focus follows DOM focus
Remove plugin init but keep plugin test.

Differential Revision: https://phabricator.services.mozilla.com/D95905
2020-11-18 15:56:23 +00:00
Bogdan Tara 56346a0425 Backed out 19 changesets (bug 1675349) for lint failures on browser_ext_browsingData_pluginData and test_archive CLOSED TREE
Backed out changeset 244e0f2b410c (bug 1675349)
Backed out changeset ba5724069dd4 (bug 1675349)
Backed out changeset 37fca259c7e9 (bug 1675349)
Backed out changeset f2b16caca1fc (bug 1675349)
Backed out changeset 28835d4935be (bug 1675349)
Backed out changeset eb913f58953a (bug 1675349)
Backed out changeset 19e3cb80f469 (bug 1675349)
Backed out changeset d9723f3a3a7e (bug 1675349)
Backed out changeset c888dfcdf70e (bug 1675349)
Backed out changeset 48f153341af6 (bug 1675349)
Backed out changeset 7fc67a9b2932 (bug 1675349)
Backed out changeset 1cee4d97f801 (bug 1675349)
Backed out changeset 59a0cb79c7c1 (bug 1675349)
Backed out changeset 43d349fa37b1 (bug 1675349)
Backed out changeset c84bfb6eae59 (bug 1675349)
Backed out changeset 38e9af69ae57 (bug 1675349)
Backed out changeset 3255c1ab3059 (bug 1675349)
Backed out changeset 2f3eaf9c342c (bug 1675349)
Backed out changeset 769e5c0db4c2 (bug 1675349)
2020-11-18 06:06:36 +02:00
David Parks ba8fa8c6ec Bug 1675349: Update tests under accessible/tests/mochitest to reflect the removal of plugins. r=jmathies
UPDATED
-------
accessible/tests/mochitest/elm/test_HTMLSpec.html
Bug 905215
Test that a11y shadow DOM gets objects of the right type and state from HTML dom.
Changed <object> and <embed> plugin tests to find no accessible.

accessible/tests/mochitest/elm/test_MathMLSpec.html
Bug 1001634
Basic MathML a11y tests.  Didn't use plugin, just initializes it.
Remove plugin initialization.

accessible/tests/mochitest/elm/test_plugin.html
Test that a11y shadow tree gets proper type/state for plugin objects and their subtrees, even if there is an HTML fallback provided.
Removed.

accessible/tests/mochitest/focus/test_takeFocus.html
Bug 677467
Test that a11y shadow tree focus follows DOM focus
Remove plugin init but keep plugin test.

Differential Revision: https://phabricator.services.mozilla.com/D95905
2020-11-18 03:07:37 +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
James Teh b81acb3f85 Bug 1677016: Provide ability for browser a11y tests to load XUL documents in the parent process. r=yzen
addAccessibleTask can now take a chrome: true option to load the test in the parent process if it is a XUL document.

Differential Revision: https://phabricator.services.mozilla.com/D96960
2020-11-16 23:50:02 +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
Nika Layzell 42028efc71 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-12 18:01:03 +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