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

10621 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 386cfe958f Bug 1791961 - accessible: Fix C++20 -Wambiguous-reversed-operator warnings. r=Jamie
clang is warning that C++20 expects comparison operators to be commutative: `a == b` and `b == a` should resolve to the same comparison operator function. Warnings about the comparison of const and non-const objects can be fixed by making the comparison operator function const.

accessible/base/TextAttrs.h:139:54 [-Wambiguous-reversed-operator] ISO C++20 considers use of overloaded operator '!=' (with operand types 'mozilla::a11y::TextAttrsMgr::TextDecorValue' and 'mozilla::a11y::TextAttrsMgr::TextDecorValue') to be ambiguous despite there being a unique best viable function with non-reversed arguments
...

Differential Revision: https://phabricator.services.mozilla.com/D179019
2023-05-26 04:51:43 +00:00
Noemi Erli ab21b0f95b Backed out 6 changesets (bug 1832353, bug 1821965) for causing build bustages in GeckoTextMarker.mm
Backed out changeset 6df0877f288a (bug 1821965)
Backed out changeset e663ccc0334e (bug 1821965)
Backed out changeset 36b250225e50 (bug 1821965)
Backed out changeset 6df5d07bf19f (bug 1832353)
Backed out changeset 409966c76f0f (bug 1832353)
Backed out changeset 3be446e44436 (bug 1832353)
2023-05-26 02:48:29 +03:00
Noemi Erli e56011d5e2 Backed out changeset 22203924d7b7 (bug 1832686) for causing failures in browser_test_general.js 2023-05-26 02:10:49 +03:00
Morgan Rae Reschenberg 628ffa8efe Bug 1832686: Fuzzy-match text leaves contained within generics when hittesting r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D178578
2023-05-25 22:20:59 +00:00
Eitan Isaacson c5a24689b5 Bug 1821965 - P3: Merge diverging text test results. r=morgan.
We had some different results in non-caching mode. We can now unify the results and not worry about that.

Depends on D178718

Differential Revision: https://phabricator.services.mozilla.com/D178719
2023-05-25 20:38:30 +00:00
Eitan Isaacson 0caef88bb0 Bug 1821965 - P2: Remove sync IPC extension messages for text operations. r=morgan,ipc-reviewers,mccr8
We can get rid the entire local HyperTextAccessible-based implementation as well!

Depends on D178717

Differential Revision: https://phabricator.services.mozilla.com/D178718
2023-05-25 20:38:29 +00:00
Eitan Isaacson de34976841 Bug 1821965 - P1: Remove legacy and proxy text marker classes. r=morgan
With caching on we can remove the legacy text marker and the abstracting class that allowed us to operate in both modes.

Differential Revision: https://phabricator.services.mozilla.com/D178717
2023-05-25 20:38:29 +00:00
Eitan Isaacson 2237be2626 Bug 1832353 - P3: Make editable text methods async and return void. r=Jamie,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D178724
2023-05-25 20:38:29 +00:00
Eitan Isaacson 6d1721c180 Bug 1832353 - P2: Convert editable text tests to browser tests. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D178715
2023-05-25 20:38:29 +00:00
Eitan Isaacson e90263d66f Bug 1832353 - P1: Move all text related browser tests into text subdir. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D178714
2023-05-25 20:38:29 +00:00
Mike Hommey aa8829f625 Bug 1834910 - Update accessible/other/Platform.cpp to match current accessible/base/Platform.h. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D179000
2023-05-25 05:20:22 +00:00
James Teh 072156cfbe Bug 1834404: Pre-allocate the HyperText offsets cache array to minimize re-allocations and thus improve performance. r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D178730
2023-05-24 21:37:10 +00:00
James Teh 7f6ff0e384 Bug 1834006 part 2: Remove ATK specific password masking code. r=morgan
The core, cross-platform implementation already masks passwords.
Thus, the ATK specific code has been unnecessary for a long time now.
The ATK masking code also only applied to LocalAccessible.
This means we can get rid of this differentiation between local and remote.

Differential Revision: https://phabricator.services.mozilla.com/D178610
2023-05-24 21:36:01 +00:00
James Teh bfb493f67d Bug 1834006 part 1: Remove several unnecessary differentiations between local and remote Accessibles in platform specific code. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D178609
2023-05-24 21:36:00 +00:00
Sandor Molnar 329d21371b Backed out changeset dbb7e27f8464 (bug 1833313) for causing android gv-junit crashes. CLOSED TREE 2023-05-24 14:08:03 +03:00
James Teh fc2dd4ac56 Bug 1821969 part 3: Remove Mac state cache. r=morgan
Now that we always have the core parent process cache, this is no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D178427
2023-05-24 10:50:46 +00:00
James Teh 46b80585f4 Bug 1821969 part 2: Remove Mac ApplyPostFilter. r=morgan
Now that we always have the parent process core cache enabled, this is always handled by the Pivot.

Differential Revision: https://phabricator.services.mozilla.com/D178426
2023-05-24 10:50:45 +00:00
James Teh 6cf954e1ce Bug 1821969 part 1: Remove Mac table layout guess cache. r=morgan
Now that we always have the core parent process cache, this is no longer necessary.
This also removes EVENT_TABLE_STYLING_CHANGED, which was only used to keep the Mac cache up to date.

Differential Revision: https://phabricator.services.mozilla.com/D178425
2023-05-24 10:50:45 +00:00
James Teh fbf1ab52f8 Bug 1833313: Remove all remaining a11y cache checks and non-caching code except for Mac specific bits. r=morgan,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D178146
2023-05-24 10:10:46 +00:00
Iulian Moraru 18534f1d12 Backed out changeset 492778e5c97b (bug 1832686) for causing browser-a11y failures on browser_test_general.js. CLOSED TREE 2023-05-24 06:39:16 +03:00
Morgan Rae Reschenberg d23af61142 Bug 1832260: Fallback to LocalAccessible::Bounds if we can't find a frame in ComputeBoundsFromFrame. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D178576
2023-05-23 21:19:32 +00:00
Morgan Rae Reschenberg 0c2a147456 Bug 1832686: Fuzzy-match text leaves contained within generics when hittesting r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D178578
2023-05-23 21:13:17 +00:00
James Teh a9118fe9f2 Bug 1833301: Remove unused LocalAccessible::Help. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D178137
2023-05-23 11:11:35 +00:00
James Teh f731ca6503 Bug 1821972 part 1: Remove/replace the few remaining ipc/mscom uses in a11y code. r=nlapre
Regarding LazyInstantiator::ResolveDispatch, we already had code in MsaaAccessible to get the IAccessible typelib.
mscom::RegisterTypelib has a lot of dependencies and it doesn't make sense to keep it for this one use case we can already support another way.

Differential Revision: https://phabricator.services.mozilla.com/D177966
2023-05-22 20:19:45 +00:00
James Teh cd328c4093 Bug 1821963 part 3: Remove various components supporting the old accessibility architecture based on content process COM proxies. r=nlapre,nalexander
This includes AccessibleHandler, HandlerProvider, IGeckoCustom and the IAccessible2 COM proxy dll.
Even with the new architecture, we still use IAccessible2, but we no longer need a COM proxy because we aren't using COM across processes ourselves.
If clients want to use IAccessible2 across processes, they're responsible for registering a COM proxy themselves as with all other IAccessible2 applications.
Alternatively, they can rely on the IAccessible2 COM proxy which is included with Windows 10 and later.

Differential Revision: https://phabricator.services.mozilla.com/D177963
2023-05-22 20:19:45 +00:00
James Teh 7c26e1ede2 Bug 1821963 part 2: Remove COM registration supporting the old accessibility architecture based on content process COM proxies. r=nlapre,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D177962
2023-05-22 20:19:45 +00:00
Narcis Beleuzu ed1139f199 Backed out 6 changesets (bug 1821963) for build bustages. CLOSED TREE
Backed out changeset a92c62e304f0 (bug 1821963)
Backed out changeset da6cba0b0dd4 (bug 1821963)
Backed out changeset 4ed7ca0eb04a (bug 1821963)
Backed out changeset f2fba0ef15d9 (bug 1821963)
Backed out changeset 706e46fc2688 (bug 1821963)
Backed out changeset 6de2b9548dc6 (bug 1821963)
2023-05-22 14:05:20 +03:00
James Teh 3a3b50114d Bug 1821963 part 3: Remove various components supporting the old accessibility architecture based on content process COM proxies. r=nlapre,nalexander
This includes AccessibleHandler, HandlerProvider, IGeckoCustom and the IAccessible2 COM proxy dll.
Even with the new architecture, we still use IAccessible2, but we no longer need a COM proxy because we aren't using COM across processes ourselves.
If clients want to use IAccessible2 across processes, they're responsible for registering a COM proxy themselves as with all other IAccessible2 applications.
Alternatively, they can rely on the IAccessible2 COM proxy which is included with Windows 10 and later.

Differential Revision: https://phabricator.services.mozilla.com/D177963
2023-05-22 10:00:21 +00:00
James Teh 13afc4eeb2 Bug 1821963 part 2: Remove COM registration supporting the old accessibility architecture based on content process COM proxies. r=nlapre,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D177962
2023-05-22 10:00:20 +00:00
James Teh 4f8cb5998f Bug 1821956 part 8: Remove most of the remaining parts of Windows RemoteAccessible. r=nlapre
This only worked with the COM proxy architecture.
It cannot be used with the cache active.
This includes ScrollSubstringToPoint, and since that isn't currently supported by the cache, it isn't supported at all on Windows now.
However, no one seems to use this on Windows and this implementation can't be used with the cache active anyway.

Differential Revision: https://phabricator.services.mozilla.com/D177901
2023-05-21 22:23:48 +00:00
James Teh a3f5b3838c Bug 1821956 part 7: Remove DocAccessibleChildBase::IsConstructedInParentProcess. r=nlapre
Now that we don't defer events on Windows, this isn't necessary on Windows.
Usage of this on other platforms was removed in bug 1821957.

Differential Revision: https://phabricator.services.mozilla.com/D177900
2023-05-21 22:23:48 +00:00
James Teh cf5d91b68e Bug 1821956 part 6: Remove event deferral and sync text change events from Windows PDocAccessible. r=nlapre
We only needed to defer events because of the need to wait for a parent COM proxy.
Similarly, sync text change events (as opposed to async) were only necessary with the COM proxy architecture.
Now that there are no COM proxies, neither of these are necessary.

Differential Revision: https://phabricator.services.mozilla.com/D177899
2023-05-21 22:23:47 +00:00
James Teh 6e16770381 Bug 1821956 part 4: Remove COM proxy, HWND and MSAA id code from PDocAccessible. r=nlapre
All of this is only used to support content process COM proxies.

Differential Revision: https://phabricator.services.mozilla.com/D177897
2023-05-21 22:23:47 +00:00
James Teh 979e3f8da4 Bug 1821956 part 3: Remove AccessibleHandlerControl code from AccessibleWrap. r=nlapre
AccessibleHandler and AccessibleHandlerControl are only used for content process COM proxies.

Differential Revision: https://phabricator.services.mozilla.com/D177896
2023-05-21 22:23:47 +00:00
James Teh c9479f6488 Bug 1821956 part 2: Remove content process MSAA id generation. r=nlapre,ipc-reviewers,taskgraph-reviewers,mccr8,jmaher
Because a11y clients only talk to the parent process now, content processes don't need to generate MSAA ids.
They're all generated in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D177895
2023-05-21 22:23:47 +00:00
James Teh b7670454fd Bug 1821956 part 1: Remove content process COM proxy support from MsaaAccessible, ia2Accessible, etc. r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D177894
2023-05-21 22:23:47 +00:00
James Teh ca6c4a3c4f Bug 1821951 part 2: Remove PeekOffsetOption::AllowContentInDifferentNativeAnonymousSubtreeRoot. r=eeejay,masayuki,taskgraph-reviewers,bhearsum
This was only added for a11y and a11y no longer needs it.
Note that the code in Mac HyperTextAccessibleWrap which used this is no longer used itself and will be removed in bug 1821965.

Differential Revision: https://phabricator.services.mozilla.com/D177745
2023-05-21 10:15:05 +00:00
James Teh 1786366bc4 Bug 1821951 part 1: Remove HyperTextAccessible methods that are no longer needed now that the cache is always used. r=morgan,taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D177744
2023-05-21 10:15:05 +00:00
James Teh 5d287de1f7 Bug 1821957: Remove RemoteAccessible methods which are already supported by RemoteAccessibleBase/CachedTableAccessible/CachedTableCellAccessible or are no longer used. r=eeejay,ipc-reviewers,mccr8
This removes the following RemoteAccessible methods:

Name
Value
Step
Description
Help
State
Bounds
BoundsInCSSPixels
Language
Attributes
RelationByType
CurValue
MinValue
MaxValue
OffsetAtPoint
TextSubstring
TextBeforeOffset
TextAtOffset
TextAfterOffset
RemoveFromSelection
CaretOffset
SetCaretOffset
ScrollSubstringTo
DOMNodeID
TakeFocus
ChildAtPoint
GroupPosition
SetSelectionBoundsAt
IsSearchbox
LandmarkRole
CharacterCount
SelectionCount
CharAt
TextAttributes
DefaultTextAttributes
TextBounds
CharBounds
SelectionBoundsAt
Text
StartOffset
EndOffset
LinkCount
LinkIndexAtOffset
TableIsProbablyForLayout
SelectedItems
SelectedItemCount
GetSelectedItem
IsItemSelected
AddItemToSelection
RemoveItemFromSelection
SelectAll
UnselectAll
DoAction
ActionCount
ActionNameAt
AccessKey
Extents
AtkKeyBinding
NativeState
Relations
ImagePosition
ImageSize
TableSummary
TableRowAndColumnIndicesAt
TableSelectedCellCount
TableSelectedColumnCount
TableSelectedRowCount
TableSelectedCells
TableSelectedCellIndices
TableOfACell
ColIdx
RowIdx
GetPosition
ColExtent
RowExtent
GetColRowExtents
ColHeaderCells
RowHeaderCells
IsCellSelected
TableCaption
TableColumnCount
TableRowCount
TableCellAt
TableCellIndexAt
TableColumnIndexAt
TableRowIndexAt
TableColumnExtentAt
TableRowExtentAt
TableColumnDescription
TableRowDescription
TableColumnSelected
TableRowSelected
TableSelectedColumnIndices
TableSelectedRowIndices
TableSelectColumn
TableSelectRow
TableUnselectColumn
TableUnselectRow
AtkTableColumnHeader
AtkTableRowHeader

Differential Revision: https://phabricator.services.mozilla.com/D177873
2023-05-21 02:44:36 +00:00
Mark Banner 130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
James Teh 5183cb7125 Bug 1821955 part 5: Change all CtW pref checks to use a11y::IsCacheActive. r=eeejay,taskgraph-reviewers,bhearsum
This was done using the following script:

```
matchingFiles=`git grep -l accessibility_cache_enabled`
sed -i 's/StaticPrefs::accessibility_cache_enabled_AtStartup/a11y::IsCacheActive/' $matchingFiles
for f in $matchingFiles; do
  usesA11yPref=
  grep -q StaticPrefs::accessibility_ $f && usesA11yPref=1
  hasA11yInclude=
  grep -q 'nsAccessibilityService.h' $f && hasA11yInclude=1
  if [ -z $usesA11yPref ] && [ -z $hasA11yInclude ]; then
    sed -i 's,mozilla/StaticPrefs_accessibility.h,nsAccessibilityService.h,' $f
  elif [ -z $usesA11yPref ] && [ $hasA11yInclude ]; then
    sed -i '/"mozilla.StaticPrefs_accessibility.h"/d' $f
  elif [ $usesA11yPref ] && [ -z $hasA11yInclude ]; then
    sed -i '/"mozilla.StaticPrefs_accessibility.h"/a#include "nsAccessibilityService.h"' $f
  fi
done
```

Differential Revision: https://phabricator.services.mozilla.com/D177722
2023-05-19 02:56:48 +00:00
James Teh 6171095f27 Bug 1821955 part 4: Introduce a function to temporarily replace the CtW pref check. r=eeejay,taskgraph-reviewers,bhearsum
This is transitional while we remove the many non-caching C++ code paths.
During the transition, we don't want someone to set the pref to false and experience breakage.
So, this function always returns true: the cache is always active henceforth.

Differential Revision: https://phabricator.services.mozilla.com/D177721
2023-05-19 02:56:48 +00:00
James Teh 5590870312 Bug 1821955 part 3: Remove CtW pref checks from tests. r=eeejay,taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D177720
2023-05-19 02:56:48 +00:00
James Teh ff0d0a5f86 Bug 1821955 part 2: Remove isWinNoCache variable from browser tests. r=eeejay,taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D177719
2023-05-19 02:56:48 +00:00
Emilio Cobos Álvarez 7d597b811b Bug 1833716 - Cleanup a bit the code for bug 1832449. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D178369
2023-05-17 21:08:33 +00:00
James Teh 6c26a79a58 Bug 1833079: When notified about a dom::ElementState::INVALID change, let AccStateChangeEvent calculate whether the state is enabled. r=morgan
Previously, we passed true for aIsEnabled, indicating that the state was only ever enabled, never disabled.
We could get the actual enabled value here using dom::ElementState::HasState(), but that wouldn't take aria-invalid into account if present.
Instead, we let AccStateChangeEvent calculate it by calling Accessible::State().

Differential Revision: https://phabricator.services.mozilla.com/D178039
2023-05-17 03:36:10 +00:00
Eitan Isaacson c3a3a950f0 Bug 1829056 - P2: Include fromIndex in TYPE_VIEW_TEXT_CHANGED events. r=Jamie,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D177809
2023-05-17 00:19:17 +00:00
Eitan Isaacson 67474ddb00 Bug 1829056 - P1: Include text in TYPE_VIEW_TEXT_SELECTION_CHANGED events. r=Jamie,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D177808
2023-05-17 00:19:17 +00:00
Morgan Rae Reschenberg 15700128ad Bug 1832449: Verify frame exists before querying computed style r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D178229
2023-05-16 22:23:35 +00:00