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

8135 Коммитов

Автор SHA1 Сообщение Дата
Morgan Reschenberg 852913f515 Bug 1618708: Implement slider class and support required actions, valueDidChange event handling. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D66667

--HG--
extra : moz-landing-system : lando
2020-03-17 17:32:33 +00:00
Eitan Isaacson d014504afb Bug 1617314 - Support aria-current in OSX. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D66813

--HG--
extra : moz-landing-system : lando
2020-03-16 22:15:57 +00:00
Eitan Isaacson b70e223767 Bug 1618718 - Support AXToggle subrole and states. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D66841

--HG--
extra : moz-landing-system : lando
2020-03-14 05:39:59 +00:00
Mihai Alexandru Michis 58bc354025 Backed out changeset 9eeee9ec66d9 (bug 253870) for causing failures in browser_bug1261299.js
CLOSED TREE
2020-03-16 22:32:41 +02:00
Emilio Cobos Álvarez 9f28f89085 Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

Differential Revision: https://phabricator.services.mozilla.com/D66464

--HG--
extra : moz-landing-system : lando
2020-03-16 17:41:07 +00:00
James Teh 89cfbd0947 Bug 1617795: Use BrowsingContext instead of DOM window to get the focused document for a11y. r=yzen,hsivonen
nsFocusManager::GetFocusedWindow may return a window even if focus is actually inside an embedded OOP iframe.
Instead, use nsFocusManager::GetFocusedBrowsingContext, which always knows about the current focus across all processes.
If the focused context is in this process, we get its document and return it.

Differential Revision: https://phabricator.services.mozilla.com/D64514

--HG--
extra : moz-landing-system : lando
2020-03-13 15:40:46 +00:00
James Teh de55f7895d Bug 1614871 part 2: Make non-Windows ProxyAccessible::ChildAtPoint cross into OOP iframes. r=eeejay
When we hit an OOP iframe, we must walk into the child document and continue the search from there.

Differential Revision: https://phabricator.services.mozilla.com/D66711

--HG--
extra : moz-landing-system : lando
2020-03-13 06:14:38 +00:00
James Teh 05f1674b2d Bug 1614871 part 1: Make non-Windows ProxyAccessible::ChildAtPoint cross into in-process iframes. r=eeejay
Accessible::ChildAtPoint can return an Accessible in a descendant document.
Thus, we must return the result PDocAccessible via IPC, not just the id.
Previously, we only returned the id, but we'd fail when we tried to look it up if it belonged to a descendant document.

Differential Revision: https://phabricator.services.mozilla.com/D66710

--HG--
extra : moz-landing-system : lando
2020-03-13 06:14:30 +00:00
James Teh 9e93d4747f Bug 1621521: Make xpcAccessible::Get(Deepest)ChildAtPoint walk into remote child documents. r=yzen
Previously, these stopped at an OuterDocAccessible.
Now, if an OuterDocAccessible is encountered, they continue the search in the remote child document.

As part of this, the bulk of the code has been moved into AccessibleOrProxy, since other callers might find this useful in future.
Also, xpcAccessible::ChildAtPoint now works on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D66534

--HG--
extra : moz-landing-system : lando
2020-03-13 01:42:05 +00:00
Ed Lee acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Mirko Brodesser ec9cb4d8ef Bug 1622199: annotate `Selection::AddRangeAndSelectFramesAndNotifyListeners` with `MOZ_CAN_RUN_SCRIPT`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D66759

--HG--
extra : moz-landing-system : lando
2020-03-13 15:46:13 +00:00
Eitan Isaacson a6a85d62a2 Bug 1622162 - Add pinned and current to state string representation. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D66712

--HG--
extra : moz-landing-system : lando
2020-03-13 04:32:46 +00:00
James Teh 73a8260a74 Bug 1621517: Make nsIAccessible child retrieval work for OuterDocAccessibles with remote documents. r=yzen
This code (and an upcoming dependent patch) is currently behind a pref which is disabled by default, as there is uncertainty as to how it might impact the Dev Tools A11y Panel.
The A11y Panel is currently a moving target due to ongoing refactor for Fission.
This pref should be removed once that groundwork is complete and the impact has been verified.

This patch also includes fixes to some ProxyAccessible methods which previously crashed when there was no parent, as is the case for top level documents.
Without these fixes, the Dev Tools A11y Panel would crash the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D66354

--HG--
extra : moz-landing-system : lando
2020-03-13 01:37:14 +00:00
Eitan Isaacson 83b8e2b9c3 Bug 1618700 - Implement expected attributes and events for tabs. r=morgan
I made more generalized mozSelectableAccessible and
mozSelectableChildAccessible classes for other things that will need
this kind of support.

Differential Revision: https://phabricator.services.mozilla.com/D66304

--HG--
extra : moz-landing-system : lando
2020-03-12 22:16:39 +00:00
Morgan Reschenberg 7cdb983c71 Bug 1124681: Query State() instead of NativeState() when deciding if a checkbox is checked. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D66489

--HG--
extra : moz-landing-system : lando
2020-03-12 17:19:35 +00:00
Morgan Reschenberg bca4131fda Bug 1617312: Ensure labelling attributes return nil for text leaves. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D66323

--HG--
extra : moz-landing-system : lando
2020-03-12 16:10:40 +00:00
Eitan Isaacson b0389fe116 Bug 1617310 - Support AXHasPopup attribute. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D66498

--HG--
extra : moz-landing-system : lando
2020-03-12 17:28:42 +00:00
Eitan Isaacson 640b0ba055 Bug 1617310 - Introduce state method in mozAccessible interface. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D66497

--HG--
extra : moz-landing-system : lando
2020-03-12 17:28:35 +00:00
Morgan Reschenberg 705648b472 Bug 1621724: Iterate through DefaultTextAttributes of hypertext accessible instead of accessible wrap's attributes to find aria-invalid's value. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D66474

--HG--
extra : moz-landing-system : lando
2020-03-12 16:08:42 +00:00
James Teh 7b7c684070 Bug 1621519: Implement xpcAccessible::GetDeepestChildAtPoint for ProxyAccessibles on Windows. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D66359

--HG--
extra : moz-landing-system : lando
2020-03-11 23:26:18 +00:00
Eitan Isaacson 088ece22c2 Bug 1618719 - Support aria radio groups. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D66337

--HG--
extra : moz-landing-system : lando
2020-03-11 22:54:37 +00:00
Eitan Isaacson e275f3ca37 Bug 1617308 - Provide AXDescription for named groupings. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D66336

--HG--
extra : moz-landing-system : lando
2020-03-11 22:54:35 +00:00
Marco Zehe 2c553e7cf6 Bug 1371712 - Fall through to ARIA landmark role determination if native landmark roles fail, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D65946

--HG--
extra : moz-landing-system : lando
2020-03-11 16:23:38 +00:00
Eitan Isaacson d18ab374a8 Bug 1620318 - Filter out hidden popup menus and announce them when they appear. r=morgan
As the message above suggests this does two things:
1. We filter out the invisible popup menus from the root's children.
2. We dispatch menu opened and closed events.

The latter helps VoiceOver retain some context about the mutating tree and notify the user about the menu.

Differential Revision: https://phabricator.services.mozilla.com/D65612

--HG--
extra : moz-landing-system : lando
2020-03-10 22:42:31 +00:00
Eitan Isaacson 9690c5105b Bug 1620318 - Rename mozDocAccessible.{mm,h} to mozRootAccessible.{mm,h} r=morgan
This is to match the actual class it implements.

Differential Revision: https://phabricator.services.mozilla.com/D65611

--HG--
rename : accessible/mac/mozDocAccessible.h => accessible/mac/mozRootAccessible.h
rename : accessible/mac/mozDocAccessible.mm => accessible/mac/mozRootAccessible.mm
extra : moz-landing-system : lando
2020-03-10 20:25:32 +00:00
Eitan Isaacson 7fa8b37f6d Bug 1620508 - Revert change where opacity:0 makes subtrees invisible. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D66296

--HG--
extra : moz-landing-system : lando
2020-03-10 22:35:51 +00:00
Morgan Reschenberg 7d0b534f27 Bug 1618716: Return the value associated with the aria-invalid attribute instead of relying on the state flag alone. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D66297

--HG--
extra : moz-landing-system : lando
2020-03-10 21:50:54 +00:00
Eitan Isaacson b7659c3136 Bug 1618712 - Unsupport e10s xpcAccessible::GroupPosition in Windows. a=fix
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D66293

--HG--
extra : amend_source : 5b69ae37a030ed889b116d3d1a5619a8a3286c80
2020-03-10 22:00:36 +02:00
Eitan Isaacson 9e27b2cdde Bug 1618712 - Use GroupPosition for heading levels in mac. r=morgan,nika
We were using the wrong Accessible method to get the level. We also need to swap IPDL methods to use the right one.

Differential Revision: https://phabricator.services.mozilla.com/D65645

--HG--
extra : moz-landing-system : lando
2020-03-10 18:32:38 +00:00
Mark Banner 2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Thal 557a0e222d Bug 1620596 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D65865

--HG--
extra : moz-landing-system : lando
2020-03-07 14:43:42 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
James Teh d6c7ae81f0 Bug 1620510: Set the last a11y focus when queuing a focus event instead of when processing it. r=MarcoZ
Previously, the following scenario was possible:

1. aria-activedescendant is used on a menupopup to set a11y focus. When the event is processed, FocusManager::mLastFocus gets set accordingly.
2. aria-activedescendant on the menupopup is changed, so a focus event gets queued.
3. Before that focus event can be processed, the Accessible in (1) gets unbound from the a11y tree.
4. DocAccessible::UnbindFromDocument checks whether the Accessible is the last focus. As per (1), it is.
5. It then tells FocusManager to reset the active item, causing it to throw away the active item set in (2) and fire focus on the DOM focus (which is not the menupopup).

This breaks the new select dropdown implementation.

To fix this, we now set mLastFocus in DispatchFocusEvent (when the event is queued) instead of ProcessFocusEvent.
This way, we don't override a pending new focus change unintentionally.

Differential Revision: https://phabricator.services.mozilla.com/D65706

--HG--
extra : moz-landing-system : lando
2020-03-06 11:56:39 +00:00
Mirko Brodesser 4be580237d Bug 1619617: part 1) Annotate `RemoveRangeAndUnselectFramesAndNotifyListeners` with `MOZ_CAN_RUN_SCRIPT`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65511

--HG--
extra : moz-landing-system : lando
2020-03-06 12:03:23 +00:00
Marco Zehe 912a8ce3e9 Bug 1619383 - Calculate group position information correctly for ARIA grids, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D65160

--HG--
extra : moz-landing-system : lando
2020-03-04 06:44:22 +00:00
Marco Zehe 0d52b506df Bug 1455066 - Take into account wrapping div or section elements when calculating table indexes for grid rows, r=Jamie
When looking to see if a row has a table, now also include generic text container accessibles in addition to row groups.

Also, when iterating through rows from a table, take into account that rows may be wrapped in generic text container accessibles.

Differential Revision: https://phabricator.services.mozilla.com/D65158

--HG--
extra : moz-landing-system : lando
2020-03-04 06:25:01 +00:00
Eitan Isaacson bc77e9f52d Bug 1616468 - Indicate required field in hint string. r=Jamie
Android does not currently have anything similar to a 'required' state
to indicate that a field or input is required before submission. In this
patch we append a localized "required" string onto the node's hint.

The hint typically has the description of the node. If the node is an
entry the hint will have its label followed by the description.

Differential Revision: https://phabricator.services.mozilla.com/D65215

--HG--
extra : moz-landing-system : lando
2020-03-04 00:00:44 +00:00
Eitan Isaacson fefb04c15e Bug 1619458 - Don't create OSX accessibles for XUL tooltips. r=morgan
Depends on D65038

Differential Revision: https://phabricator.services.mozilla.com/D65039

--HG--
extra : moz-landing-system : lando
2020-03-03 17:47:09 +00:00
Eitan Isaacson 3ea5342b3a Bug 1619458 - Add Accessible::IsXULTooltip. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D65038

--HG--
extra : moz-landing-system : lando
2020-03-03 01:42:46 +00:00
Eitan Isaacson 01c6855e5e Bug 1619438 - Don't get dom node id from accessible with no associated content. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D65029

--HG--
extra : moz-landing-system : lando
2020-03-03 17:45:15 +00:00
Eitan Isaacson 282a75d913 Bug 1619442 - Style inactive status panel with visibility: hidden. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D65035

--HG--
extra : moz-landing-system : lando
2020-03-03 16:39:06 +00:00
James Teh 193e22639f Bug 1555228: When window emulation is enabled, use the root accessible to answer IAccessible::accChild queries for ids in OOP iframes. r=yzen
When window emulation is enabled, each tab document gets its own HWND.
OOP iframes get the same HWND as their tab document and fire events with that HWND.
However, the root accessible for the HWND (the tab document) can't return accessibles for OOP iframes.
Therefore, we must get the root accessible from the main HWND and call accChild on that instead.

We must do this in the parent process, but the tab document accessible is in the content process.
Although OOP a11y clients talk directly to the content process, the clients that need window emulation are in-process.
All in-process client calls get intercepted by AccessibleHandler, so we can deal with this forwarding in AccessibleHandler.

Differential Revision: https://phabricator.services.mozilla.com/D65054

--HG--
extra : moz-landing-system : lando
2020-03-03 15:48:22 +00:00
Eitan Isaacson f270ef49e9 Bug 1617301 - Fix accessibilityFocusedUIElement to work across processes. r=morgan
This is similar to the fix in bug 1614079 where we need to account
for a descendant that might match past a process boundary.

Differential Revision: https://phabricator.services.mozilla.com/D63974

--HG--
extra : moz-landing-system : lando
2020-03-02 22:10:37 +00:00
Eitan Isaacson ee44ad7d4c Bug 1618040 - Advertise AXScrollToVisible on link. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D64246

--HG--
extra : moz-landing-system : lando
2020-03-02 22:18:11 +00:00
Eitan Isaacson 8ec8f6b45c Bug 1618364 - Add OSX accessible lifecycle notifications. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D64481

--HG--
extra : moz-landing-system : lando
2020-02-27 16:54:59 +00:00
Emilio Cobos Álvarez 6b4b7ae72c Bug 1617084 - Add some simple DOM ancestor iterators. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D63594

--HG--
extra : moz-landing-system : lando
2020-03-02 11:36:42 +00:00
Emilio Cobos Álvarez b874593cd7 Bug 1617472 - Put Servo_GetPropertyValue behind a method in ComputedStyle. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D63813

--HG--
extra : moz-landing-system : lando
2020-03-01 23:49:38 +00:00
Marco Zehe 6d5bea032c Bug 1608961 - Support ARIA 1.3 aria-description property, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64283

--HG--
extra : moz-landing-system : lando
2020-03-02 10:59:22 +00:00
Marco Zehe df16c0598f Bug 1608969 - Add new ARIA 1.3 comment role, r=Jamie
This adds both the role as well as calculation of the posinset, setsize, and level calculation if not provided by the author.

Differential Revision: https://phabricator.services.mozilla.com/D64590

--HG--
extra : moz-landing-system : lando
2020-03-01 19:35:06 +00:00
Marco Zehe 93ff1614a5 Bug 1608965 Part 2 - Add ARIA suggestion role, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64546

--HG--
extra : moz-landing-system : lando
2020-03-01 19:37:33 +00:00