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

641 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell 661b4db5f0 Bug 1689147 - Part 4: Switch nested and prio to extended attributes, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D103369
2021-02-09 16:50:22 +00:00
Eitan Isaacson cb03a1923c Bug 1690342 - P4: Implement IPC attributed text getter. r=morgan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D103802
2021-02-08 23:26:47 +00:00
Eitan Isaacson b9559d486e Bug 1690342 - P3: Add protocol stubs for mac attributed text. r=Jamie,mccr8,ipc-reviewers DONTBUILD
Created DocAccessibleTypes.ipdlh to put common types so they can be used in platform
extension protocols.

Differential Revision: https://phabricator.services.mozilla.com/D103801
2021-02-08 23:26:39 +00:00
Eitan Isaacson d3876360b5 Bug 1688972 - Make FocusedChild work across document/process boundaries. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D103102
2021-02-01 17:54:23 +00:00
Dorel Luca dc191572ea Backed out changeset 4572c1ba670a (bug 1688972) for Browser-chrome failures in accessible/tests/browser/fission/browser_take_focus.js. CLOSED TREE 2021-01-30 01:17:00 +02:00
Eitan Isaacson ba6174e679 Bug 1688972 - Make FocusedChild work across document/process boundaries. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D103102
2021-01-29 20:57:30 +00:00
Bas Schouten 57732c3083 Bug 1687535: Give several LazyInstantiator functions fast paths that avoid a11y instantiation. r=Jamie
This prevents us from instantiating accessibility (and incurring a significant performance cost later in the runtime) when we already know the answers a caller will receive if a11y were instantiated.

Differential Revision: https://phabricator.services.mozilla.com/D102371
2021-01-21 17:19:47 +00:00
James Teh 03c0b5f0e4 Bug 1669748: Null check the document IAccessibles sent for OOP iframes. r=yzen
The COM proxy for a DocAccessibleParent at the top level in its content process really should never be null.
However, some systems seem to have a broken COM configuration which causes problems like this.
This does mean a11y is broken, but users who get a11y enabled because of something other than an AT (e.g. touch screen) probably aren't even aware.
Regardless, we shouldn't crash.
Instead, we assert (in debug builds) and null check.

Differential Revision: https://phabricator.services.mozilla.com/D102129
2021-01-19 19:30:57 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Eitan Isaacson 9e19999a57 Bug 1681909 - P3: Implement e10s post search filter and test. r=morgan
The test adds fission testing as well.

Differential Revision: https://phabricator.services.mozilla.com/D100732
2021-01-05 20:35:37 +00:00
Eitan Isaacson ca8fda7434 Bug 1681909 - P1: Add IPC stubs for ApplyPostSearchFilter. r=morgan,ipc-reviewers,mccr8
Applying a bulk filter on accessibles in content process allows us to avoid a potentially large (and variable) number of IPC sync calls to retrieve the accessible names. I chose to implement this as a "post filter" and not to actually do the entire search in content because it would cause a lot of duplication of code for non-IPC searching, and we wouldn't have the flexibility to combine a text search with any arbitrary search key as the API requires.

I also generalized the RangeTypes.h header to PlatformExtTypes so it can be used to define filter types as well.

Differential Revision: https://phabricator.services.mozilla.com/D100730
2021-01-05 20:35:22 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Simon Giesecke 4cab6ac723 Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8
This moves parts of IPCMessageUtils.h to two new header files and adapts
the include directives as necessary. The new header files are:
- EnumSerializer.h, which defines the templates for enum serializers
- IPCMessageUtilsSpecializations.h, which defines template specializations
  of ParamTraits with extra dependencies (building upon both IPCMessageUtils.h
  and EnumSerializer.h)

This should minimize the dependencies pulled in by every consumer of
IPCMessageUtils.h

Differential Revision: https://phabricator.services.mozilla.com/D94459
2020-12-10 11:09:21 +00:00
Simon Giesecke c077183836 Bug 1660470 - Avoid including IPCMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93235

Depends on D93234
2020-11-23 16:03:47 +00:00
Simon Giesecke c3c25a8337 Bug 1660470 - Avoid including GfxMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93234

Depends on D93233
2020-11-23 16:03:38 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Aaron Klotz 01caccf15a Bug 1674904: Part 4 - Update AccessibleHandler to delayload dependencies that are only used during registration; r=Jamie
We should delayload DLLs that for APIs that are only used during registration
so that they aren't referenced during normal operation.

Differential Revision: https://phabricator.services.mozilla.com/D95609
2020-11-04 21:50:06 +00:00
Dorel Luca e3198dde0a Backed out 4 changesets (bug 1674904) for Build bustage in worker/checkouts/gecko/config/rules.mk. CLOSED TREE
Backed out changeset 50576e0fbd98 (bug 1674904)
Backed out changeset b3b7d68c33f6 (bug 1674904)
Backed out changeset 660cdea23685 (bug 1674904)
Backed out changeset 7322c3af8006 (bug 1674904)
2020-11-04 23:20:51 +02:00
Aaron Klotz da717f3b82 Bug 1674904: Part 4 - Update AccessibleHandler to delayload dependencies that are only used during registration; r=Jamie
We should delayload DLLs that for APIs that are only used during registration
so that they aren't referenced during normal operation.

Differential Revision: https://phabricator.services.mozilla.com/D95609
2020-11-04 20:41:33 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

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

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

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

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

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

# ignore-this-changeset

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

To produce this patch I did all of the following:

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

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

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

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

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

# ignore-this-changeset

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

To produce this patch I did all of the following:

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

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

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

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

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Eitan Isaacson 2e476d423a Bug 1671049 - Invalidate cached ARIA role and role in mozAccessible when role changes. r=morgan
Besides the ARIA role invalidation, this fixes an issue where the mozAccessible's role is also incorrect when the aria role changes on a body tag.

Depends on D93439

Differential Revision: https://phabricator.services.mozilla.com/D93440
2020-10-14 00:04:49 +00:00
Marco Zehe 1d00f10ad1 Bug 1668546 Part 1 - Rename the Pivot function in Android's AccessibleWrap so it doesn't collide with the name of the Pivot class, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D92216
2020-10-05 17:45:30 +00:00
Sylvestre Ledru d9cd198ba1 Bug 1519636 - Reformat recent changes to the Google coding style r=andi,necko-reviewers,dragana
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D92459
2020-10-06 16:12:00 +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 1080fb58d3 Bug 1661760 - Part 3: Add line boundary support in mac. r=morgan
The left and right line getters don't seem to be used often by voiceover,
so I am not sure if they always return the expected result.

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

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

Differential Revision: https://phabricator.services.mozilla.com/D90936
2020-09-24 16:04:41 +00:00
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
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
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
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
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
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
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 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 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
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