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

896 Коммитов

Автор SHA1 Сообщение Дата
James Teh d09d8b85c6 Bug 1572852: a11y::Logging::LogDocShellTree: Make it clear that this is in-process DocShell tree info. r=yzen
For an OOP iframe, the logged parent will be null and the logged root won't be the real top level document.
This is just the way things are and this might still be useful info sometimes, so we still log it, but make it clear in the log message that it's about the in-process tree.

Differential Revision: https://phabricator.services.mozilla.com/D74587
2020-05-11 14:38:53 +00:00
Marco Zehe bc8f0b63cb Bug 1635538 - Correct the AXRole for image maps, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D75030
2020-05-13 20:07:42 +00:00
Marco Zehe 7215ba00a1 Bug 1635527 - Correct AXRole for status bar, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D75028
2020-05-13 20:06:51 +00:00
Eitan Isaacson c1c0b3551c Bug 1625184 - Map dialogs and alert dialogs correctly in Mac. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D74957
2020-05-13 05:59:23 +00:00
James Teh 09a25365d2 Bug 1572860: Remove the ability for an outer document to override live region markup in an inner iframe document. r=MarcoZ
This is something that was implemented a long time ago, but it isn't covered in any spec, other browsers don't implement it and I don't know of any usage in the wild.
This doesn't work with OOP iframes, since what we're doing here requires the documents to be in the same process.
Given it isn't used or specified, the simplest solution is to just remove the behaviour altogether.

Differential Revision: https://phabricator.services.mozilla.com/D74628
2020-05-11 11:13:43 +00:00
James Teh e6468d4b89 Bug 1635309: Clear conceptual parent when updating AccGroupInfo. r=MarcoZ
When an Accessible is removed, the AccGroupInfo for its siblings is marked dirty.
However, when AccGroupInfo::Update is called, it previously didn't clear mParent, which is used for the NODE_CHILD_OF relation.
This meant that if the conceptual group parent was removed and there was subsequently no conceptual parent, NODE_CHILD_OF would return an incorrect (potentially dead) Accessible.

Differential Revision: https://phabricator.services.mozilla.com/D73776
2020-05-05 05:36:31 +00:00
Jonathan Watt 2d1fc3c186 Bug 1634217. Make `accessible/` buildable outside of `unified-build` environment. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D73176
2020-05-01 04:28:35 +00:00
Eitan Isaacson d7324d465e Bug 1625870 - Support figure and figcaption is OSX. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D72509
2020-04-28 19:45:51 +00:00
Brindusan Cristian ae12f8e207 Backed out changeset b9710246d416 (bug 1625870) for mochitest failures at test_figure.html. CLOSED TREE 2020-04-28 21:54:31 +03:00
Eitan Isaacson b62ce6a55b Bug 1625870 - Support figure and figcaption is OSX. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D72509
2020-04-28 18:04:00 +00:00
Simon Giesecke 191a830575 Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin
Differential Revision: https://phabricator.services.mozilla.com/D70831
2020-04-24 13:31:14 +00:00
Eitan Isaacson 9db905efb4 Bug 1625864 - Fire state change event on LINKED change. r=Jamie,morgan
Also stop recreating any accessible that has href modified.

Differential Revision: https://phabricator.services.mozilla.com/D71258
2020-04-24 14:34:09 +00:00
James Teh 122d48f2b2 Bug 1632706: When updating AccGroupInfo, If a sibling has cached group info, assume it's visible. r=MarcoZ
This avoids unnecessary calls to States().

Differential Revision: https://phabricator.services.mozilla.com/D72265
2020-04-24 02:42:46 +00:00
James Teh 4f5d44905a Bug 1629078 part 2: Make date/time inputs labellable by an ancestor HTML label and expose text-input-type attribute. r=MarcoZ
In order for a form control to be labelled by an ancestor HTML label, its Accessible must return true for isWidget().
Also, HTML AAM says the text-input-type attribute should be exposed.

Differential Revision: https://phabricator.services.mozilla.com/D72080
2020-04-23 04:48:53 +00:00
James Teh bb39797e35 Bug 1629078 part 1: For eNameFromSubtreeIfReqRule, don't walk into the descendants of the Accessible for which the text equiv is being calculated. r=MarcoZ
We already skipped descendants for eNameFromSubtreeIfReqRule when the element wasn't labelled by something else; i.e. when calling GetNameFromSubtree.
However, when such an element is labelled/described by an ancestor, we compute the text equiv for the label using AppendTextEquivFromContent.
Previously, when descending from the ancestor down into the element itself, we would descend into its subtree despite eNameFromSubtreeIfReqRule.
This meant that groupings labelled/described by ancestor would include the content of the grouping itself in its label/description.
This was causing problems for time inputs (once those can accept an ancestor label in the next patch).

Differential Revision: https://phabricator.services.mozilla.com/D72079
2020-04-23 04:38:19 +00:00
Noemi Erli 6cf19c2464 Backed out 3 changesets (bug 1625864) for causing mochitest failures in test_update.html
Backed out changeset cf3caf6f708c (bug 1625864)
Backed out changeset 0a4a66240a9f (bug 1625864)
Backed out changeset 20bcd150f92c (bug 1625864)
2020-04-20 22:31:26 +03:00
Eitan Isaacson 7fac737410 Bug 1625864 - Fire state change event on LINKED change. r=Jamie,morgan
Also stop recreating any accessible that has href modified.

Differential Revision: https://phabricator.services.mozilla.com/D71258
2020-04-20 17:59:09 +00:00
Emilio Cobos Álvarez 60fdfe51e1 Bug 1629838 - Don't flush reentrantly from XUL a11y construction. r=Jamie
This code has pretty much always been broken, we've started to flush
more because we fixed a bug that was not looking at XUL trees inside
shadow DOM in bug 1625991.

We cannot flush layout from a11y tree construction.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 01:01:12 +00:00
Sylvestre Ledru 0aa6f03cf3 Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Eric Rahm 357069ff58 Bug 1626455 - Remove nsAutoPtr usage from accessible/. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D69126

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:35 +00:00
Christoph Kerschbaumer 4b9c5814af 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-31 11:06:38 +00:00
Marco Zehe 038d0f0c06 Bug 1626137 - Account for tables that are display:block; when looking for the table of a row accessible, r=Jamie
When checking if a parent of a table row counts for a table, take into account that a table might be an ARIAGridAccessible, which remains a generic hyperText, but is still a valid table. Tables with display: block; are such candidates.

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

--HG--
extra : moz-landing-system : lando
2020-03-31 06:32:15 +00:00
James Teh 979d04b401 Bug 1625396: AccessibleOrProxy::ChildAtPoint: Accessible::ChildAtPoint can return null, so don't try to check for a remote child doc in that case. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D68739

--HG--
extra : moz-landing-system : lando
2020-03-30 13:19:15 +00:00
Morgan Reschenberg 48fa33b966 Bug 1618706: Adjust role of grid cells from group to table-cell. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D68618

--HG--
extra : moz-landing-system : lando
2020-03-27 20:37:24 +00:00
Morgan Reschenberg 53fcf5a7d2 Bug 1617311: Add details/summary attributes and values. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D67233

--HG--
extra : moz-landing-system : lando
2020-03-27 22:08:40 +00:00
Eitan Isaacson 9c101448f7 Bug 1407724 - Provide role of TEXT_CONTAINER to descendants of "strong" aria roles. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D66793

--HG--
extra : moz-landing-system : lando
2020-03-27 16:00:09 +00:00
Marco Zehe 0948ee96fa Bug 1625153 - Implement the WAI-ARIA 1.2 code role, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D68432

--HG--
extra : moz-landing-system : lando
2020-03-26 21:26:15 +00:00
James Teh 25c7a7bb42 Bug 1622699 part 3: Remove accessibility.xpcom.traverse_outerdoc pref. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D68304

--HG--
extra : moz-landing-system : lando
2020-03-26 18:01:37 +00:00
Brindusan Cristian 907f988362 Backed out changeset 155281fd18fd (bug 1571461) for mochitest failures at test_general.xhtml. CLOSED TREE 2020-03-24 21:27:46 +02:00
Eitan Isaacson c5e8c91afb Bug 1622731 - Make nsCoreUtils tree/column functions null-safe. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D67673

--HG--
extra : moz-landing-system : lando
2020-03-24 19:07:30 +00:00
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 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
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 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
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
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
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 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
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 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
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
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
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