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

8856 Коммитов

Автор SHA1 Сообщение Дата
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
Narcis Beleuzu 818e3aeb0d Bug 1668653 - Fix lint failure in browser_navigate.js. a=lint-fix 2020-10-06 01:13:21 +03: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
James Teh 590d7137ee Bug 1668707: When deciding whether to create a div Accessible, skip the first/last child if it's invisible and consider inline-block, etc. r=MarcoZ
1. Text nodes can be created in the DOM just because there was white space in the source, but this isn't always visible.
    We shouldn't create an Accessible in the invisible case.
    However, there could be an inline frame after/before an invisible text node, so we still need to check for that.

2. We should create div Accessibles if there are inline-block children such as buttons.
    Previously, we weren't doing this because these aren't caught by IsInlineFrame.
    We now use IsInlineOutside, which also catches text and br.
    Aside from being a bug, this fix was needed in this patch to fix tests which previously created div Accessibles because of invisible text nodes, but lost the Accessibles once this was fixed.

3. Similarly, we should create div Accessibles if there is a previous text sibling.
    Again, IsInlineFrame wasn't catching these, but IsInlineOutside does.

4. Adjust various tests to fix assumptions based on the previous behaviour.
    Some needed role="none" to force flattening, while some needed an id to force creation.

Differential Revision: https://phabricator.services.mozilla.com/D92170
2020-10-02 07:15:15 +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
Marco Zehe ce4b2c115c Bug 1666998 - Implement layout-independent paragraph offset search, r=Jamie
This uses the Pivot class to search backwards and forwards from the current offsets until either end is reached, or an accessible that is either a line break or has a block frame, is found, and therefore constitutes a boundary of interest.

Differential Revision: https://phabricator.services.mozilla.com/D91407
2020-10-01 14:16:07 +00:00
Cosmin Sabou 1fa6714a17 Backed out changeset 1b8515b4548c (bug 1666998) for bustages on HyperTextAccessible.cpp. CLOSED TREE 2020-10-01 14:56:38 +03:00
Olli Pettay 8a508eaa66 Bug 1668357 - Disable tests which fail when fission and session-history-in-parent are enabled, r=peterv,marionette-reviewers,whimboo
In many cases with wpt, most of the tests in the file pass, but it is rather time consuming to annotate
.ini files case by case.

Differential Revision: https://phabricator.services.mozilla.com/D91977
2020-10-01 10:23:47 +00:00
Marco Zehe 77c3d1eac2 Bug 1666998 - Implement layout-independent paragraph offset search, r=Jamie
This uses the Pivot class to search backwards and forwards from the current offsets until either end is reached, or an accessible that is either a line break or has a block frame, is found, and therefore constitutes a boundary of interest.

Differential Revision: https://phabricator.services.mozilla.com/D91407
2020-10-01 10:41:46 +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
Morgan Reschenberg eef7c76d3c Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90745
2020-09-29 22:31:58 +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
Razvan Maries cc4aafb692 Backed out changeset e9d2bed643ab (bug 1665962) for perma failures on browser_rotor.js. CLOSED TREE 2020-09-30 00:22:30 +03:00
Morgan Reschenberg 8e5014ba1b Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90745
2020-09-29 15:41:09 +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 53d47afda5 Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90745
2020-09-28 18:40:56 +00: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
Markus Stange 41c70bcd59 Bug 1666617 - Add an observer description argument to AddRefreshObserver. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D91082
2020-09-25 02:36:29 +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
Morgan Reschenberg bfb99727ec Bug 1665962: Introduce roles::LISTITEM_MARKER to rolemap, add mac mapping to AXListMarker r=eeejay,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90745
2020-09-23 23:33:49 +00:00
Eitan Isaacson aadc545b2d Bug 1661760 - Followup: eslint tests. r=dluca
Differential Revision: https://phabricator.services.mozilla.com/D91302
2020-09-24 16:34:15 +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 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
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
James Teh fceae5b85b Bug 1660145: a11y tree test_media.html: Be more specific in the criteria when waiting for the buffer percentage Accessible to be shown. r=MarcoZ
It seems checking for the parent role alone wasn't specific enough.

Differential Revision: https://phabricator.services.mozilla.com/D87694
2020-08-21 05:44:23 +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 1b3266b806 Bug 1660109 - Add BoundsForRange sync ipc call. r=Jamie,nika
Differential Revision: https://phabricator.services.mozilla.com/D87669
2020-08-20 22:11:41 +00:00
James Teh 9a38047a36 Bug 1659641: Remove redundancy from the label for the video controls volume slider. r=fluent-reviewers,Gijs
The fact that this control is a slider is communicated through its role.
Having the word "slider" in the label is thus redundant and results in unnecessary verbosity for screen reader users.

Differential Revision: https://phabricator.services.mozilla.com/D87401
2020-08-19 21:57:06 +00:00
James Teh 5038ab2404 Bug 1496851 part 3: Don't expose the buffering bar as a progress bar for a11y. r=MarcoZ,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87220
2020-08-19 21:56:45 +00:00
James Teh eb7b38c282 Bug 1496851 part 2: Improve a11y of the position scrubber in the video controls. r=MarcoZ,fluent-reviewers,Gijs
1. Label it.

2. Expose the position and duration as its value text.
    The raw numeric value exposed previously wasn't meaningful to users.

3. Hide the progressBar for a11y.
    While the scrubber and progressBar are visually combined, they are exposed as entirely separate controls for a11y.
    As well as duplicating information, progress bars are automatically reported by screen readers even if they aren't focused, which intrudes on the audio being played.

4. Remove tabindex="-1" on the progressBar.
    A progress element isn't focusable by default.
    tabindex="-1" makes it programmatically focusable (but not tabbable).
    This isn't interactive, so there's no reason for this to be programmatically focusable.
    Moreover, this is now aria-hidden and aria-hidden elements should never be focusable.

Differential Revision: https://phabricator.services.mozilla.com/D87400
2020-08-19 21:56:32 +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 58ae94661e Bug 1657765 - Add IPDL interface for platform-specific mac API. r=morgan,Jamie,nika
Differential Revision: https://phabricator.services.mozilla.com/D86606
2020-08-14 19:33:00 +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
Kagami Sascha Rosylight 3742a0a9e0 Bug 1659028 - Move IsDisabled() from nsGeneralHTMLElement to Element r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87022
2020-08-14 08:36:36 +00:00
Eitan Isaacson 7ac061f2db Bug 1657759 - Fix TextPoints lesser-than operator. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D86276
2020-08-11 16:26:04 +00:00
Emilio Cobos Álvarez 0563da73d2 Bug 1639328 - Fix browser_hidden_iframe.js. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D86591
2020-08-11 02:17:15 +00:00
Razvan Maries eed7de660b Backed out 2 changesets (bug 1639328) for perma failures on test_bug1639328.html. CLOSED TREE
Backed out changeset 23130282a937 (bug 1639328)
Backed out changeset 8628c5cddd14 (bug 1639328)
2020-08-11 05:13:41 +03:00
Emilio Cobos Álvarez a80f2b2689 Bug 1639328 - Fix browser_hidden_iframe.js. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D86591
2020-08-10 23:00:10 +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
Mike Hommey 91952035ff Bug 1656141 - Remove redundant manifest references in rc include files. r=firefox-build-system-reviewers,rstewart
The build system will add these manifests whether they are referenced
explicitly in theses rc include files or not.

Differential Revision: https://phabricator.services.mozilla.com/D86157
2020-08-06 22:51:52 +00:00
Mike Hommey ee6a08868d Bug 1656141 - Remove EMBED_MANIFEST_AT. r=froydnj
It was only ever set to the same value as its default, except in
comm-central, where it is unset, but in directories that now don't link
anything (they did back when binary components were a thing).

Differential Revision: https://phabricator.services.mozilla.com/D85381
2020-08-06 22:52:08 +00:00
Eitan Isaacson 98e23587ae Bug 1657744 - Don't fail when forcing e10s off on a11y browser tests. r=yzen DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D86271
2020-08-06 23:19:23 +00:00
Mihai Alexandru Michis c4e805857f Backed out 9 changesets (bug 1656141) for causing multiple failures.
CLOSED TREE

Backed out changeset 9033b0400339 (bug 1656141)
Backed out changeset e43dd57dc61a (bug 1656141)
Backed out changeset eb450457a9b7 (bug 1656141)
Backed out changeset 194a994cf9c9 (bug 1656141)
Backed out changeset ce6831acb5e3 (bug 1656141)
Backed out changeset 29653ea85d49 (bug 1656141)
Backed out changeset 704f28486bda (bug 1656141)
Backed out changeset de8899453150 (bug 1656141)
Backed out changeset 4b133eda46aa (bug 1656141)
2020-08-07 01:48:45 +03: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
Mike Hommey 172e5c81ec Bug 1656141 - Remove redundant manifest references in rc include files. r=firefox-build-system-reviewers,rstewart
The build system will add these manifests whether they are referenced
explicitly in theses rc include files or not.

Differential Revision: https://phabricator.services.mozilla.com/D86157
2020-08-06 15:54:56 +00:00
Mike Hommey afec638391 Bug 1656141 - Remove EMBED_MANIFEST_AT. r=froydnj
It was only ever set to the same value as its default, except in
comm-central, where it is unset, but in directories that now don't link
anything (they did back when binary components were a thing).

Differential Revision: https://phabricator.services.mozilla.com/D85381
2020-08-06 07:05:36 +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
Simon Giesecke 1e6ec7ec86 Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange
The abstract observer base classes are moved to a separate header file
nsRefreshObservers.h and the includes are adjusted accordingly.

Some method implementations are moved to the corresponding implementation files
to avoid the need to include the nsRefreshDriver.h file in the header.

Differential Revision: https://phabricator.services.mozilla.com/D85764
2020-08-04 21:17:50 +00:00
Eitan Isaacson 8fa865b06a Bug 1635722 - Check existance of proxy accessibles for pivot boundaries. r=Jamie
The new pivot boundaries might consist of accessibles that don't exist
yet in the parent process proxy tree.

I guess we can tweak the timing of the pivot boundaries message to be
sent only after remote tree construction. But this seems like an edge
case that quickly gets corrected after the next cache refresh.

Differential Revision: https://phabricator.services.mozilla.com/D85912
2020-08-04 22:16:23 +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 4dc69f92a7 Bug 1652809: Add NSDictionary (JS to ObjCpp) parsing to xpc Mac interface r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D85339
2020-08-04 21:05:24 +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
Simon Giesecke 96f3e7e019 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
James Teh f26ee07ab8 Bug 1655652: Prevent bogus assertion in IsDefunct() for DummyAccessibles. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D85710
2020-08-03 17:31:40 +00:00
Noemi Erli 381fca9783 Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Simon Giesecke 032d2ac9d3 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +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
Morgan Reschenberg 95e4d6df8e Bug 1652809: Convert Pivot framework to use AccessibleOrProxy objects r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D83671
2020-07-28 22:35:24 +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
Joel Maher 2f2dc70492 Bug 1654553 - fix browser chrome tests to support Object.is instead of ==. r=gbrown,preferences-reviewers,Gijs,rpl
fix browser chrome tests to support Object.is instead of ==

Differential Revision: https://phabricator.services.mozilla.com/D84539
2020-07-27 17:02:35 +00:00
Morgan Reschenberg 999fd665e0 Bug 1648813: Re-disable browser_webarea test for intermittent failures r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D84869
2020-07-27 13:24:06 +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
Noemi Erli 45128aa910 Backed out changeset b698b2435396 (bug 1652809) for causing bustages in TraversalRule.h CLOSED TREE 2020-07-25 03:07:39 +03:00
Morgan Reschenberg 980b4228e6 Bug 1652809: Convert Pivot framework to use AccessibleOrProxy objects r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D83671
2020-07-24 20:56:00 +00:00
Mark Banner 10cbdaa642 Bug 1620537 - Fix more ESLint issues raised after upgrading to ESlint 7. r=mossop
There's two issues being fixed here - the first is that no-unused-vars now reports against the last instance of the unused variable. The second is no-dupe-else-if is now on by default.

Depends on D84816

Differential Revision: https://phabricator.services.mozilla.com/D84818
2020-07-24 21:31:24 +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
James Teh fa611658d4 Bug 1368270: When shutting down Windows AccessibleWraps, don't clear the id. r=MarcoZ
When an Accessible is shut down, there might still be external references to it, so we keep the instance alive.
We don't want to reuse the id until all references are released, so we only release the id in the destructor (which runs when all references are released).
Previously, we were clearing the id variable in Shutdown, which meant we couldn't release the id in the destructor!
This meant we always leaked ids, never reusing them.
Now, we don't clear the id in Shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D84653
2020-07-23 11:18:57 +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 6da8e46f49 Bug 1654444 - Check text change element on webarea dispatched text events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84551
2020-07-22 18:04:24 +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
Morgan Reschenberg 7de6a01c17 Bug 1648813: Retreive iframe doc from top-level doc if load events are passed out of order. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D84250
2020-07-21 23:57:12 +00:00
Eitan Isaacson 7927ccf478 Bug 1653421 - Part 6: Introduce tests for text change events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84058
2020-07-21 23:03:04 +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
James Teh 7821989f81 Bug 1420529: Don't fire immediate events on a DocAccessible whose tree isn't constructed yet. r=eeejay
For remote documents, the DocAccessibleChild isn't created until the tree is constructed.
This means we can't send events to the parent process and thus to the client.
We shouldn't fire these events in the first place, since this makes events inconsistent for local and remote documents.

Differential Revision: https://phabricator.services.mozilla.com/D83605
2020-07-19 22:46:33 +00:00
Marco Bonardo 9cba702385 Bug 1653611 - Make UrlbarProvider.cancelQuery optional. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D83974
2020-07-17 19:55:30 +00:00
Eitan Isaacson 47eeb74440 Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D83408
2020-07-16 17:51:22 +00:00
Kashav Madan 46c04e90f2 Bug 1596738 - Don't focus the tab's content area for restores triggered by DocumentChannel process switches, r=dao,nika,mixedpuppy
This causes the browser to steal focus from any element that was focused prior
to the completion of the remoteness flip. This is particularly a problem for
fission because every cross-origin navigation requires a process switch.

This code is still necessary for "normal" session restores (see bug 1410591),
but focus is handled elsewhere for remote navigations.

Differential Revision: https://phabricator.services.mozilla.com/D82783
2020-07-15 23:09:09 +00:00
Simon Giesecke d3d071323d Bug 1652021 - Remove unnecessary includes from Accessible.h. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D83112
2020-07-15 13:46:02 +00:00
Simon Giesecke 96fb649d21 Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83111
2020-07-15 13:44:39 +00:00
Csoregi Natalia d74107a680 Backed out changeset 99402617d852 (bug 1652211) for failures on test_tooltip.xhtml. CLOSED TREE 2020-07-15 07:06:48 +03:00
Eitan Isaacson a1dcb0fa34 Bug 1370669 - Don't queue redundant hide events. r=Jamie
An accessible can be hidden twice in a mutation event queue. With the first
time representing a move. Instead of queueing a second hide event,
simply drop it.

Differential Revision: https://phabricator.services.mozilla.com/D83373
2020-07-14 21:24:22 +00:00
Eitan Isaacson c43598ec97 Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D83408
2020-07-14 21:20:51 +00:00
James Teh 3b449c5301 Bug 1652439: Null check the root accessible when handling QueryService to SID_IAccessibleContentDocument in content processes. r=MarcoZ
Accessible::RootAccessible() returns null on the ApplicationAccessible.
We weren't null checking this previously, so QueryService for SID_IAccessibleContentDocument on the ApplicationAccessible in a content process would crash.
This is rare, but JAWS does sometimes trigger it.

Differential Revision: https://phabricator.services.mozilla.com/D83452
2020-07-14 04:55:56 +00:00
longsonr c2fc063be0 Bug 1652254 - Remove svg from some moz.build local includes r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83247
2020-07-12 16:38:26 +00:00
James Teh 947ab30aca Bug 1650462: Don't include group descendants when calculating the acc name of treeitems. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D83042
2020-07-13 01:32:33 +00:00
Harry Twyford f9ae9c43a1 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-12 21:55:25 +00:00
James Teh eee112f8f9 Bug 1647666: test_doc_busy.html: Handle the case where the busy change and not-busy change events are coalesced out of existence. r=yzen
Also removed debug logging, as well as about:blank check which turned out not to be the cause of the timeout.

Differential Revision: https://phabricator.services.mozilla.com/D82137
2020-07-12 14:56:23 +00:00
Csoregi Natalia af5cff556a Backed out 6 changesets (bug 1648468) for failures on test_keywords.js. CLOSED TREE
Backed out changeset 918db5010acb (bug 1648468)
Backed out changeset 91a4b5b593bf (bug 1648468)
Backed out changeset 3bded27be98e (bug 1648468)
Backed out changeset 60a36d4424df (bug 1648468)
Backed out changeset 1edf02398318 (bug 1648468)
Backed out changeset ebac9fb9da0d (bug 1648468)
2020-07-12 09:03:53 +03:00
Harry Twyford daefa9ecc0 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-12 02:28:07 +00:00
Razvan Maries 911baac099 Backed out 6 changesets (bug 1648468) for perma failures on browser_test_focus_urlbar.js. CLOSED TREE
Backed out changeset 60b6915e8037 (bug 1648468)
Backed out changeset fc7a6b8f84a2 (bug 1648468)
Backed out changeset 97c7475abf85 (bug 1648468)
Backed out changeset bb37a0821844 (bug 1648468)
Backed out changeset 10447a3e04ff (bug 1648468)
Backed out changeset 69a210ce0e9a (bug 1648468)
2020-07-12 01:31:42 +03:00
Harry Twyford ed82a86096 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-11 21:32:19 +00:00
Butkovits Atila 7c20974c02 Backed out changeset 54aff812a50b (bug 1650462) as requested by jya. 2020-07-11 15:46:30 +03:00
James Teh 8512a122d8 Bug 1650462: Don't include group descendants when calculating the acc name of treeitems. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D83042
2020-07-10 07:34:31 +00:00
James Teh ba7d805a62 Bug 1650590: A11y COM handler: Use CoTaskMemAlloc/Free for row/column header ids arrays when returned by IGeckoBackChannel::Refresh. r=MarcoZ
DynamicIA2Data can be built to be transmitted in two different ways:

1. As part of the payload included in the stream when an accessible is marshaled; or
2. As an out parameter returned by IGeckoBackChannel::Refresh().

DynamicIA2Data includes arrays for row/column header ids.
Normally, such arrays would be allocated by CoTaskMemAlloc and freed by CoTaskMemFree.
However, in the first case, the struct is actually marshaled by RPC encoding functions, not by COM itself.
This means we must use midl_user_allocate/free, lest we crash.
We previously used midl_user_allocate/free for the second case as well.
Unfortunately, it turns out that this too causes crashes.

To fix this, we now use different memory allocation functions depending on how the struct is transmitted.

This patch also cleans up the old DynamicIA2Data in the client before calling IGeckoBackChannel::Refresh.
Previously, we didn't do this, which would have resulted in a leak.

Differential Revision: https://phabricator.services.mozilla.com/D82823
2020-07-09 06:56:24 +00:00
Samuel Thibault 667bd111f3 Bug 1606721 - Fix crash on screen reader text requests with bogus offsets, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D82424
2020-07-08 22:46:28 +00:00
Samuel Thibault 08cdd6ddc7 Bug 1606721 - Fix crash on screen reader text requests with end offset smaller than -1, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D82324
2020-07-08 22:47:11 +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
Dorel Luca 2e8d3a633e Bug 1648813 - disable browser_webarea.js on macos opt builds. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82254
2020-07-07 14:05:52 +00: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 7b241c8028 Bug 1649575 - Part 6: Introduce browser test for basic text API. r=morgan.
Differential Revision: https://phabricator.services.mozilla.com/D81762
2020-07-02 21:24:58 +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 82c3896e77 Bug 1649575 - Part 2: Wrap opaque NSObjects for testing. r=morgan
AXTextMarker and AXTextMarkerRange are opaque types that are not queried or
manipulated by the AT. For tests, we need to be able to retrieve them,
and pass them back.

This patch generalizes the wrapper we already had in nsIAccessibleMacInterface
and allows other types to be wrapped.

Differential Revision: https://phabricator.services.mozilla.com/D81758
2020-07-02 21:24:39 +00:00
Eitan Isaacson ec18c36609 Bug 1649575 - Part 1: Add comparators to AccessibleOrProxy. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81757
2020-07-02 21:24:32 +00:00
Eitan Isaacson 65ed33dc4e Bug 1649217 - Part 4: Update caret move event tests to support isSelectionCollapsed. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81914
2020-07-02 17:43:24 +00:00
Eitan Isaacson 970939c823 Bug 1649217 - Part 3: Support isSelectionCollapsed in caret moved xpcom iface. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81913
2020-07-02 17:43:21 +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
Eitan Isaacson 92abff2aee Bug 1649217 - Part 1: Add isSelectionCollapsed to AccCaretMoveEvent. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81911
2020-07-02 17:43:09 +00:00
James Teh b9c87a600d Bug 1649253: Correctly assign an Android a11y id to OOP iframe documents. r=eeejay
The DocProxyAccessibleWrap for an OOP iframe document is always created before we know its parent.
Previously, this resulted in the document getting an id of -1, which is only valid for the root document.
It also broke subsequent assumptions once the parent was set later.

Because we don't have the parent in this case, we can't add the document's id to its parent's hash table.
To deal with this, we no longer add any document to its parent's hash table.
Instead, when finding an accessible by id, we just check the id of each child document before checking that child document's hash table.

Differential Revision: https://phabricator.services.mozilla.com/D81959
2020-07-02 17:20:38 +00:00
Eitan Isaacson 080acfd067 Bug 1635722 - Check node ipc docs before sending pivot boundaries. r=Jamie
The IPC docs of the first/last nodes are not guaranteed to exist. This
could happen early on when the child docs are still hanging and have not
yet been processed in the NotificationController.

Differential Revision: https://phabricator.services.mozilla.com/D81883
2020-07-01 23:09:51 +00:00
Simon Giesecke 9364b353d4 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +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
James Teh a14ee5ceec Bug 1631276 part 3: Don't return a descendant document in DocAccessibleChild::RecvChildAtPoint unless we're certain that document has been constructed in the parent process. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D81010
2020-06-25 16:11:07 +00:00