Commit Graph

8670 Commits

Author SHA1 Message Date
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
f770fa368b Bug 1661760 - Part 2: Refactor mac basic text test. r=morgan
There are going to be a whole bunch of things we want to check for each
text marker in a document. I think loops should be avoided as much as possible,
but this lets us store a single array with everything we expect for each marker.

This is going to expand in the future.

Differential Revision: https://phabricator.services.mozilla.com/D90937
2020-09-24 16:04:48 +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
James Teh
5c7556a7fa Bug 1666955 part 3: Enable window emulation for ZoomText and ZoomText Fusion 2021 and later. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D91235
2020-09-24 05:13:16 +00:00
James Teh
52f75ef45f Bug 1666955 part 2: Detect dll shared by JAWS, ZoomText and ZoomText Fusion 2021 and later. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D91234
2020-09-24 05:13:15 +00:00
James Teh
bd3e418d3d Bug 1666955 part 1: Remove pointless check for content process in nsWinUtils::MaybeStartWindowEmulation. r=MarcoZ
This check is a remnant of the first version of e10s a11y, where there was no sandbox and content processes could expose their own HWNDs.
We return early if IPCAccessibilityActive(), which is now always true when running in a content process, so this check will never be hit.
If it *were* hit, this would cause serious breakage now, so having this in the code only serves to confuse things at best.

Differential Revision: https://phabricator.services.mozilla.com/D91233
2020-09-24 05:13:15 +00:00
James Teh
735476c1c2 Bug 1666720: AccessibleHandler: When refreshing the cache, fetch into a temporary struct rather than into the live cache to avoid problems triggered by COM re-entry. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D91218
2020-09-24 04:42:00 +00:00
Simon Giesecke
de7bab0f06 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +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
James Teh
95f7af8423 Bug 872397: Work around inconsistencies in layout word movement to ensure that a11y word start boundaries are consistent around punctuation and white space. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D90654
2020-09-22 11:11:15 +00:00
Marco Zehe
c73c6f8406 Bug 1665751 Part 3: Rewrite textSelection/test_general.html to use async await instead of event queue, r=yzen DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90860
2020-09-21 18:34:45 +00:00
Marco Zehe
df24528bee Bug 1665751 Part 2: Factor out the Select All And Focus element sequence into a utility function for use by other test files, r=yzen DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90859
2020-09-21 18:34:27 +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
Eitan Isaacson
db323082ed Bug 1661765 - Part 1: Move selection and scroll functions to TextRange. r=Jamie
This gives us the flexibility of selecting and scrolling to any range, not just
offsets in a given container.

Differential Revision: https://phabricator.services.mozilla.com/D90591
2020-09-21 22:52:01 +00:00
Aaron Klotz
ee56e6a4b2 Bug 1651705: Part 6 - Update Android a11y to work with NativeWeakPtr; r=eeejay
This patch is similar to part 4 but for Android a11y.

Conversions over to `NativeWeakPtr` are pretty straight forward thanks to the
type system. Basically we take a `NativeWeakPtr`, call `Access()` on it, and
if the accessor is truthy, then we call whatever methods we need to call.

Creation of new pointers is done using `NativeWeakPtrHolder::Attach()` and
detaching of strong references is done by `NativeWeakPtr::Detach()`.

Differential Revision: https://phabricator.services.mozilla.com/D87365
2020-09-21 21:48:53 +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
Marco Zehe
7425a344b7 Bug 1665751 - Convert test_userinput.html to promisified events, r=yzen DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90682
2020-09-19 06:49:35 +00:00
Kartikaya Gupta
f38b3ecb1b Bug 1665955 - Stop including nsIScrollableFrame.h from Element.h. r=emilio
Changes to nsIScrollableFrame.h cause the world to rebuild which I find annoying.
This removes the inclusion into Element.h which is responsible for the
world-rebuilding and is relatively easy to eliminate. A bunch of usages of
nsIScrollableFrame get moved from .h files into .cpp files and I include the
header into .cpp files as needed.

Differential Revision: https://phabricator.services.mozilla.com/D90735
2020-09-18 18:32:13 +00:00
Marco Zehe
0c2fda970a Bug 1665662 - Ensure that at the end of a paragraph, after a line break, we return empty line offsets, r=Jamie
If in a textarea, a blank line is inserted, we need to return the offsets of just that new inner paragraph, or the braille display of a screen reader will show the previous line and not a blank one.

Differential Revision: https://phabricator.services.mozilla.com/D90655
2020-09-18 06:58:33 +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
Marco Zehe
6fb51e8cb7 Bug 1520779 Part 6: Return consistent results for paragraphs that contain forced line breaks, r=Jamie
1. Make sure the paragraph text and start and end ofsets returned for offsets on either the text or its adjacent br always match.
2. For a single line break at the beginning of the enclosing paragraph, or two consecutive line breaks, treat the second one as its own paragraph without text, and its start offset corresponding to its offset, and end offset being 1 greater.
3. Add a test case exercising all cases.

Differential Revision: https://phabricator.services.mozilla.com/D90355
2020-09-17 04:51:31 +00:00
Marco Zehe
2209e8f5b2 Bug 1520779 Part 5: Expose both text and list bullet when requesting the paragraph from a list item, r=Jamie
Tagging onto what we already do for getting line offsets, also doing the same when the paragraph selection is requested.

Differential Revision: https://phabricator.services.mozilla.com/D90238
2020-09-17 00:02:22 +00:00
Marco Zehe
ba3763885d Bug 1520779 Part 4: Add tests to exercise paragraph retrieval, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90117
2020-09-17 00:02:22 +00:00
Marco Zehe
74739aaa14 Bug 1520779 Part 3: Hook up the IA2_TEXT_BOUNDARY_PARAGRAPH to the internal nsIAccessibleText::BOUNDARY_PARAGRAPH support, r=Jamie
Depends on D90115

Differential Revision: https://phabricator.services.mozilla.com/D90116
2020-09-17 00:02:21 +00:00
Marco Zehe
b3310a715c Bug 1520779 Part 2: Implement nsIAccessibleText::BOUNDARY_PARAGRAPH in HyperTextAccessible::GetTextAtOffset, r=Jamie,eeejay
For TextBeforeOffset and TextAfterOffset, bail out with an empty text and 0-initialized out integers if the boundary type is nsIAccessibleText::BOUNDARY_PARAGRAPH.

Differential Revision: https://phabricator.services.mozilla.com/D90115
2020-09-17 00:02:21 +00:00
Marco Zehe
c230d1c198 Bug 1520779 Part 1: Add the paragraph boundary to nsIAccessibleText, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90114
2020-09-17 00:02:21 +00:00
Dorel Luca
87b04b7232 Backed out 6 changesets (bug 1520779) for Mochitest failures in accessible/tests/mochitest/tree/test_img.html. CLOSED TREE
Backed out changeset 1d5de85e5c45 (bug 1520779)
Backed out changeset 3e53ec41f414 (bug 1520779)
Backed out changeset 2e3924874d25 (bug 1520779)
Backed out changeset 6ddb6ee83467 (bug 1520779)
Backed out changeset 3ca759ecb3d7 (bug 1520779)
Backed out changeset 4cf65b0cd304 (bug 1520779)
2020-09-17 02:56:15 +03: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
Marco Zehe
e828bc6794 Bug 1520779 Part 6: Return consistent results for paragraphs that contain forced line breaks, r=Jamie
1. Make sure the paragraph text and start and end ofsets returned for offsets on either the text or its adjacent br always match.
2. For two consecutive line breaks, treat the second one as its own paragraph without text, and its start offset corresponding to its offset, and end offset being 1 greater.
3. Add a test case exercising all cases.

Differential Revision: https://phabricator.services.mozilla.com/D90355
2020-09-16 20:59:21 +00:00
Marco Zehe
58bbff873c Bug 1520779 Part 5: Expose both text and list bullet when requesting the paragraph from a list item, r=Jamie
Tagging onto what we already do for getting line offsets, also doing the same when the paragraph selection is requested.

Differential Revision: https://phabricator.services.mozilla.com/D90238
2020-09-16 08:09:39 +00:00
Marco Zehe
070903f6f3 Bug 1520779 Part 4: Add tests to exercise paragraph retrieval, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90117
2020-09-16 05:20:38 +00:00
Marco Zehe
5d0775549a Bug 1520779 Part 3: Hook up the IA2_TEXT_BOUNDARY_PARAGRAPH to the internal nsIAccessibleText::BOUNDARY_PARAGRAPH support, r=Jamie
Depends on D90115

Differential Revision: https://phabricator.services.mozilla.com/D90116
2020-09-16 03:56:10 +00:00
Marco Zehe
b1af3b9011 Bug 1520779 Part 2: Implement nsIAccessibleText::BOUNDARY_PARAGRAPH in HyperTextAccessible::GetTextAtOffset, r=Jamie,eeejay
For TextBeforeOffset and TextAfterOffset, bail out with an empty text and 0-initialized out integers if the boundary type is nsIAccessibleText::BOUNDARY_PARAGRAPH.

Differential Revision: https://phabricator.services.mozilla.com/D90115
2020-09-16 03:52:47 +00:00
Marco Zehe
55045fb9a9 Bug 1520779 Part 1: Add the paragraph boundary to nsIAccessibleText, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90114
2020-09-16 03:51:43 +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
09969de13b Bug 1665200 - Add test for root group and AXAnyTypeSearchKey. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D90319
2020-09-16 20:23:12 +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
Joel Maher
26804c202e Bug 1664497 - Adjust test expectations for OSX with no EDID dongle. r=bc,preferences-reviewers,marionette-reviewers,whimboo,Gijs
Adjust test expectations for OSX with no EDID dongle.

Differential Revision: https://phabricator.services.mozilla.com/D89934
2020-09-12 10:12:58 +00:00
Eitan Isaacson
ba85e30cc9 Bug 1664323 - Initialize out arguments in mac a11y IPC methods. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D89830
2020-09-11 15:53:57 +00:00
Eitan Isaacson
90d135b86d Bug 1661758 - Part 5: Test AXUIElementForTextMarker and AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89067
2020-09-11 05:08:02 +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
Eitan Isaacson
1959904dc6 Bug 1661758 - Part 2: Introduce sync IPDL methods for getting leaf at offset. r=morgan,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D89064
2020-09-11 05:07:48 +00:00
Eitan Isaacson
e3872eb448 Bug 1661758 - Part 1: Introduce sync IPDL methods for getting text range of child. r=morgan,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D89063
2020-09-11 05:07:46 +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
f3a7f78787 Bug 1661758 - Part 5: Test AXUIElementForTextMarker and AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89067
2020-09-10 21:52:37 +00: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
f613d9f64e Bug 1661758 - Part 2: Introduce sync IPDL methods for getting leaf at offset. r=morgan,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D89064
2020-09-10 21:52:20 +00:00
Eitan Isaacson
d0576060fa Bug 1661758 - Part 1: Introduce sync IPDL methods for getting text range of child. r=morgan,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D89063
2020-09-10 21:52:13 +00:00
Gerald Squelart
5f9ff13253 Bug 1663543 - Convert PROFILER_ADD_MARKER and 2-arg profiler_add_marker to PROFILER_MARKER_UNTYPED - r=gregtatum
Mostly mechanical change, with some extra work where non-literal names are provided.
Also, when this is the only profiler call in a file, `#include "GeckoProfiler.h"` can be changed to `#include "mozilla/ProfilerMarkers.h"`.

Differential Revision: https://phabricator.services.mozilla.com/D89415
2020-09-10 03:02:36 +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
Emilio Cobos Álvarez
5e326ff535 Bug 1655983 - Notify the accessibility service directly when detaching a shadow root. r=eeejay
See the comment for different things that we could do here, this being
the simplest one IMO.

Differential Revision: https://phabricator.services.mozilla.com/D89639
2020-09-09 17:57:05 +00: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
Marco Zehe
8e98d90958 Bug 1657576 - Expose the data-at-shortcutkeys attribute as an object attribute, r=Jamie
Currently used mostly by Twitter and Facebook to allow them to specify which virtual quick navigation keys assistive technologies should not use when in those web applications, but instead pass them through to the browser. JAWS is currently the only known assistive technology making use of this feature.

This works in Chrome and the new Edge, but not in Firefox, because JAWS stopped using ISimpleDOM in Firefox, which no longer gave them access to this attribute.

This bug is to allow exposure of the non-standardized data-at-shortcutkeys attribute value via a same-named IAccessible2 and ATK Object Attribute.

Differential Revision: https://phabricator.services.mozilla.com/D86181
2020-09-09 05:43:19 +00:00
Sylvestre Ledru
c320561565 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D89392
2020-09-08 04:32:00 +00:00
Emilio Cobos Álvarez
f363dc0c80 Bug 1662456 - Simplify hitregion accessibility code. r=nical
There's no reason it has to allocate anything.

Differential Revision: https://phabricator.services.mozilla.com/D88991
2020-09-02 23:47:17 +00:00
Emilio Cobos Álvarez
97ac4d259f Bug 1662456 - Remove HTMLCanvasElement::CountContexts and related code. r=nical
Canvas only has one context, and that assumption is pretty baked into
the code, so having an API that pretends otherwise is silly.

Differential Revision: https://phabricator.services.mozilla.com/D88990
2020-09-02 14:20:50 +00:00
Nathan Froyd
cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +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
Butkovits Atila
925221149f Backed out 7 changesets (bug 1651705) as requested by Aklotz. CLOSED TREE
Backed out changeset 60730e8394ae (bug 1651705)
Backed out changeset c441ae751191 (bug 1651705)
Backed out changeset c289f06ceba2 (bug 1651705)
Backed out changeset d4491ef94b3e (bug 1651705)
Backed out changeset 1cca90ffab83 (bug 1651705)
Backed out changeset 9b1ce53e6472 (bug 1651705)
Backed out changeset a31251ba4566 (bug 1651705)
2020-09-01 20:39:15 +03:00
Aaron Klotz
6a34c1e45b Bug 1651705: Part 6 - Update Android a11y to work with NativeWeakPtr; r=eeejay
This patch is similar to part 4 but for Android a11y.

Conversions over to `NativeWeakPtr` are pretty straight forward thanks to the
type system. Basically we take a `NativeWeakPtr`, call `Access()` on it, and
if the accessor is truthy, then we call whatever methods we need to call.

Creation of new pointers is done using `NativeWeakPtrHolder::Attach()` and
detaching of strong references is done by `NativeWeakPtr::Detach()`.

Differential Revision: https://phabricator.services.mozilla.com/D87365
2020-09-01 14:34:37 +00:00
Eitan Isaacson
6d2844352a Bug 1625868 - Use AXDescription/List for dl/dd. r=morgan
It seems that VoiceOver expects AXDescriptionList and AXDescription
as subroles in order to report the correct number of items in a dl.

Differential Revision: https://phabricator.services.mozilla.com/D88890
2020-08-31 18:40:21 +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
Sylvestre Ledru
9c192aa9ca Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D88713
2020-08-31 09:23:02 +00:00
Mihai Alexandru Michis
261d01524b Backed out changeset d0f173a90792 (bug 1519636) for causing bustages.
CLOSED TREE
2020-08-31 10:14:58 +03:00
Sylvestre Ledru
939dd426e6 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D88713
2020-08-31 06:51:21 +00:00
James Teh
2f11033294 Bug 1660359 part 2: Allow a11y focus on a remote print preview OuterDocAccessible. r=jwatt,yzen
Print preview documents don't get DocAccessibles because this currently causes crashes and doesn't provide much value.
However, we still want to tell a11y clients something useful when a print preview document gets focus, rather than a11y focus just going nowhere.
Therefore, we allow a11y focus to land on the OuterDocAccessible (browser element) in this case.

Differential Revision: https://phabricator.services.mozilla.com/D87997
2020-08-27 06:12:25 +00:00
Narcis Beleuzu
3361c24c23 Backed out 7 changesets (bug 1651705) for mochitest failures on test_resizers_resizing_elements.html . CLOSED TREE
Backed out changeset 7fd32a3fb6e7 (bug 1651705)
Backed out changeset de4edbcb15c1 (bug 1651705)
Backed out changeset 531e71369f68 (bug 1651705)
Backed out changeset 84590e96de88 (bug 1651705)
Backed out changeset 7d9d2d44b2ee (bug 1651705)
Backed out changeset 9ffca762753c (bug 1651705)
Backed out changeset 2d79f4348b36 (bug 1651705)
2020-08-28 23:06:39 +03: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
Aaron Klotz
78b90eb9b7 Bug 1651705: Part 6 - Update Android a11y to work with NativeWeakPtr; r=eeejay
This patch is similar to part 4 but for Android a11y.

Conversions over to `NativeWeakPtr` are pretty straight forward thanks to the
type system. Basically we take a `NativeWeakPtr`, call `Access()` on it, and
if the accessor is truthy, then we call whatever methods we need to call.

Creation of new pointers is done using `NativeWeakPtrHolder::Attach()` and
detaching of strong references is done by `NativeWeakPtr::Detach()`.

Differential Revision: https://phabricator.services.mozilla.com/D87365
2020-08-27 20:14:50 +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
Mike Hommey
38d62cc384 Bug 1620133 - Move MIDL handling to moz.build. r=firefox-build-system-reviewers,rstewart
The `register` rules are dropped at the same time because nothing
actually uses them.

Differential Revision: https://phabricator.services.mozilla.com/D88390
2020-08-28 01:58:50 +00:00
James Teh
93e2f3eea8 Bug 1660359 part 1: Unify rejection of a11y focus on remote OuterDocAccessibles. r=yzen
Before Fission, FocusManager::FocusedDOMNode rejected a11y focus on remote XUL browsers by checking EventStateManager::IsRemoteTarget.
In bug 1594623, code was added to FocusManager::ProcessDOMFocus to prevent a11y focus on OuterDocAccessibles in order to reject focus on OOP iframes.
In bug 1635784, EventStateManager::IsRemoteTarget was renamed to EventStateManager::IsTopLevelRemoteTarget, and EventStateManager::IsRemoteTarget now checks for OOP iframes as well.
This allows us to unify rejection of a11y focus on remote OuterDocAccessibles in FocusManager::FocusedDOMNode.

Differential Revision: https://phabricator.services.mozilla.com/D87996
2020-08-27 06:12:29 +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
1962242b94 Bug 1660364 - Introduce IPDL getters for text range length, and absolute offsets. r=morgan,mccr8
We need a sync IPC call for this because otherwise the number of smaller sync messages we would need to call would be variable.

Differential Revision: https://phabricator.services.mozilla.com/D88076
2020-08-27 20:06:42 +00:00
Sonia Singla
3c29de9496 Bug 1656294 - Enable all ESLint rules on accessible/tests/mochitest/*.xhtml files. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D85459
2020-08-27 09:36:18 +00:00
Bogdan Tara
ce21a13035 Backed out 4 changesets (bug 1657459, bug 1660359) for browser_modal_print.js failures CLOSED TREE
Backed out changeset 971e2d1a6140 (bug 1657459)
Backed out changeset a447925c9f8e (bug 1660359)
Backed out changeset 697accb3ceb3 (bug 1660359)
Backed out changeset fc650bd7d6b8 (bug 1660359)
2020-08-27 09:01:46 +03:00
James Teh
b9c8114a73 Bug 1660359 part 2: Allow a11y focus on a remote print preview OuterDocAccessible. r=jwatt,yzen
Print preview documents don't get DocAccessibles because this currently causes crashes and doesn't provide much value.
However, we still want to tell a11y clients something useful when a print preview document gets focus, rather than a11y focus just going nowhere.
Therefore, we allow a11y focus to land on the OuterDocAccessible (browser element) in this case.

Differential Revision: https://phabricator.services.mozilla.com/D87997
2020-08-26 13:49:43 +00:00
James Teh
e835259d70 Bug 1660359 part 1: Unify rejection of a11y focus on remote OuterDocAccessibles. r=yzen
Before Fission, FocusManager::FocusedDOMNode rejected a11y focus on remote XUL browsers by checking EventStateManager::IsRemoteTarget.
In bug 1594623, code was added to FocusManager::ProcessDOMFocus to prevent a11y focus on OuterDocAccessibles in order to reject focus on OOP iframes.
In bug 1635784, EventStateManager::IsRemoteTarget was renamed to EventStateManager::IsTopLevelRemoteTarget, and EventStateManager::IsRemoteTarget now checks for OOP iframes as well.
This allows us to unify rejection of a11y focus on remote OuterDocAccessibles in FocusManager::FocusedDOMNode.

Differential Revision: https://phabricator.services.mozilla.com/D87996
2020-08-24 17:17:19 +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