Commit Graph

8190 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
f64b1b7ff8 Bug 1571461 - Change accessibility of search widget to look for all event handlers and remove hack to hide.r=surkov,MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D68023

--HG--
extra : moz-landing-system : lando
2020-03-24 17:32:59 +00:00
Eitan Isaacson
f8243143b8 Bug 1622731 - Notify of destruction after detaching accessible wrap/proxy. r=morgan
Depends on D67673

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

--HG--
extra : moz-landing-system : lando
2020-03-21 05:26:19 +00:00
Emilio Cobos Álvarez
04828e3a4a 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-19 13:18:16 +00:00
James Teh
2372f54c8a Bug 1622941: Fire ATK text-attributes-changed events for ProxyAccessibles. r=MarcoZ
Previously, we fired these for Accessibles, but this was never implemented for ProxyAccessibles (remote content documents).

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

--HG--
extra : moz-landing-system : lando
2020-03-18 06:07:45 +00:00
James Teh
6e3cde7338 Bug 1622751: Teach IPDL that PDocAccessible::AccessibleAtPoint can return a null result doc. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D67081

--HG--
extra : moz-landing-system : lando
2020-03-17 22:13:55 +00:00
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
Marco Zehe
02b10b3195 Bug 1608965 Part 1 - Add ARIA mark role, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64545

--HG--
extra : moz-landing-system : lando
2020-03-01 19:38:16 +00:00
Eitan Isaacson
aa33282e2d Bug 925209 - Accessibles in opacity:0 subtrees should be invisible. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64479

--HG--
extra : moz-landing-system : lando
2020-02-26 23:22:48 +00:00
Andrew McCreight
4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei
00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Mike Hommey
d747b65211 Bug 1617794 - Wrap Windows tools with Wine on cross builds. r=dmajor
Windows programs run via Wine don't like Unix absolute paths (they look
like command line arguments), so we need to use relative paths.

Mingw already run fxc2 via wine, but for some reason it doesn't care
about the Unix absolute paths. genshaders does need some adjustements to
run properly with the real fxc.

Now, on actual Windows, because the temporary directory where
tempfile.NamedTemporaryFile creates files by default is not necessarily
on the same drive as where the command runs from, a relative path can't
be constructed. So we also force the temporary file to be created in the
current (obj) directory.

There is no similar concern for other files because we only go from
objdir to srcdir, and the build system already doesn't support both
being on a separate drive.

While here, flush stdout when the genshared script writes to it, so that
the messages are printed out immediately rather than randomly, later,
after output from subprocesses.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:42:57 +00:00
Andrew McCreight
b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Marco Zehe
c8821fff8b Bug 1608883 - Add test for multiple aria-details relations, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D64109

--HG--
extra : moz-landing-system : lando
2020-02-26 00:05:29 +00:00
James Teh
515c09fa73 Bug 1602692: Enable a11y tests for Fission which depend on TakeFocus. r=yzen
nsFocusManager::SetFocus (and thus Accessible::TakeFocus) was fixed for Fission in bug 1556627.
Most of these tests now pass without modification.
browser_caching_value.js needed to be tweaked slightly to synthesize a key in the OOP iframe instead of the top level document.

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

--HG--
extra : moz-landing-system : lando
2020-02-26 00:36:02 +00:00
Eitan Isaacson
8e38a4587c Bug 1616466 - Support expand/collapse android accessibility actions. r=Jamie,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D63290

--HG--
extra : moz-landing-system : lando
2020-02-25 22:37:00 +00:00
Kris Maglione
f3354d4788 Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 22:33:53 +00:00
Arthur Iakab
73b6d9dca6 Backed out changeset 5616425b54da (bug 1617254)for casuing multiple browser-chrome failures.
CLOSED TREE
2020-02-26 00:09:34 +02:00
Kris Maglione
c65ef42473 Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 21:03:58 +00:00
Noemi Erli
6b488deed0 Backed out changeset 034e2e79ecfa (bug 1617254) for causing build bustages CLOSED TREE 2020-02-25 21:59:14 +02:00
Kris Maglione
c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Kris Maglione
e4c4115afb Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 19:39:25 +00:00
Simon Giesecke
aaf6cb4e75 Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63899

--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Eitan Isaacson
9701de3f19 Bug 1614834 - Advertise and implement AXScrollToVisible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D63580

--HG--
extra : moz-landing-system : lando
2020-02-25 00:05:00 +00:00
Dorel Luca
2075a0e4ab Backed out changeset 0a9ee19aaa48 (bug 1614834) for Build bustages on /build/src/accessible/mac/mozAccessible.mm. CLOSED TREE 2020-02-24 21:03:51 +02:00
Eitan Isaacson
54ca0747e1 Bug 1614834 - Advertise and implement AXScrollToVisible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D63580

--HG--
extra : moz-landing-system : lando
2020-02-24 17:30:25 +00:00
Emilio Cobos Álvarez
8d0f4ce3ca Bug 1617472 - Remove kTextDecorationStyleKTable. r=heycam
In a somewhat easy way. There are better ways to do this (moving
text-decoration-style to be a proper cbindgen enum class or such), but this
does the job for now.

Depends on D63794

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:30:46 +00:00
Emilio Cobos Álvarez
1ff4460ea3 Bug 1617472 - Remove kTextAlignKTable. r=heycam
Depends on D63793

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

--HG--
extra : moz-landing-system : lando
2020-02-24 13:30:44 +00:00
Marco Zehe
a464412e8e Bug 1616851 - For grouping, calculate name from subtree if requested by other accessible object, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D63619

--HG--
extra : moz-landing-system : lando
2020-02-24 06:52:19 +00:00
James Teh
c604c6018c Bug 1616078: Don't use HTMLListBulletAccessible for CSS ::marker content. r=eeejay,emilio,MarcoZ
::marker content gets handled like text from any other CSS pseudo-class.
Therefore, using HTMLListBulletAccessible ends up duplicating the content already exposed in the a11y tree.
Now, we only use HTMLListBulletAccessible for nsBulletFrames instead of all marker frames.

As part of this, remove nsContainerFrame::GetSpokenMarkerContent, since we no longer need it to retrieve ::marker content.
The bulk of its other work was done by nsBulletFrame::GetSpokenContent, which we now call directly.
It also handled producing a default bullet character for list-style-image, but it makes sense for this to live in the a11y code.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 01:23:37 +00:00
Eitan Isaacson
1e2369f4ca Bug 1615562 - Don't move accessible focus if caret is collapsed or not on focusable. r=Jamie
If a keyboard-focused accessible is removed, the caret jumps to its
nearest ancestor. To avoid arbitrary accessibility focus moves, ignore
caret events that have no selection and are not focusable items.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 21:49:20 +00:00
Eitan Isaacson
777e8fba2d Bug 1616797 - Check that accessible's frame still exists in scroll dispatcher r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D63546

--HG--
extra : moz-landing-system : lando
2020-02-20 21:12:43 +00:00
Simon Giesecke
9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Dorel Luca
d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke
59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
James Teh
ac0a51e32c Bug 1596007: Fire an a11y state change event when an image's size becomes available. r=eeejay,emilio
Differential Revision: https://phabricator.services.mozilla.com/D62871

--HG--
extra : moz-landing-system : lando
2020-02-18 17:22:35 +00:00
Eitan Isaacson
5f6ff669bf Bug 1616146 - Cache accessibility focus boundaries in java. r=Jamie
This allows `performAction` to immediately return false if a boundary is
reached and allow TalkBack to navigate past the web view.

Change viewport cache listener to reorder since it should catch all tree
mutations in the document.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 21:09:06 +00:00
Mike Shal
d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Mirko Brodesser
f170973369 Bug 1615581: part 1) Rename TableSelection to TableSelectionMode. r=jfkthame
See part 2) why this is necessary.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 12:28:45 +00:00
James Teh
809ba18b5c Bug 1505974: Include the subtree of role="alert" when referenced by aria-labelledby/describedby. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D63037

--HG--
extra : moz-landing-system : lando
2020-02-17 06:39:24 +00:00
James Teh
5fef6bfb48 Bug 1118086: When a menupopup is shown, if aria-activedescendant is set, redirect focus appropriately. r=eeejay
Normally, XUL menupopups contain XUL menuitems, and XUL menuitems fire DOMMenuitemActive events from layout to manage a11y focus.
However, the new parent process select dropdown implementation uses a menulist containing div elements instead of XUL menuitems.
DOMMenuItemActive doesn't work for div elements because we check Accessible::ContainerWidget(), and that doesn't know to return the menupopup for div elements.
Since aria-activedescendant is the more web standard way to handle this, the new select dropdown implementation uses aria-activedescendant.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 04:06:00 +00:00
Eitan Isaacson
a98323bb51 Bug 1611060 - Dispatch a11y scroll events for all DOM scrolls. r=Jamie
Currently, only documents dispatch scroll events when in reality any
element can have scrollable overflows.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 04:09:34 +00:00
Morgan Reschenberg
7c8049bbaf Bug 1611428: Add accessibilityLabel function to support aria-label on MacOS. r=eeejay,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D62470

--HG--
extra : moz-landing-system : lando
2020-02-14 21:20:27 +00:00
Eitan Isaacson
1fedcb34de Bug 1615502 - Support list items with display:contents. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D62947

--HG--
extra : moz-landing-system : lando
2020-02-14 21:14:02 +00:00
Morgan Reschenberg
2c5b5be3cf Bug 746531: Remove Mac-specific casing in listcontrols focus test. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D62455

--HG--
extra : moz-landing-system : lando
2020-02-13 00:06:46 +00:00
Cosmin Sabou
ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Mike Shal
ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Brindusan Cristian
e2fb6b8344 Backed out changeset 7fefed11f117 (bug 1611326) for build bustages at update-1.xpi.stub. CLOSED TREE 2020-02-13 23:33:34 +02:00
Mike Shal
e6464dd404 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:31:50 +00:00
Simon Giesecke
b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Eitan Isaacson
809ed89d61 Bug 895323 - Don't create bullet accessible when list style is none. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D62537

--HG--
extra : moz-landing-system : lando
2020-02-12 06:25:29 +00:00
Eitan Isaacson
6bbdeee348 Bug 1614835 - Advertise focusable state to OSX correctly. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D62523

--HG--
extra : moz-landing-system : lando
2020-02-13 00:09:16 +00:00