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

9285 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 7b751b9325 Backed out changeset f42e32addd89 (bug 1534799) for causing failures on test_txtctrl.xhtml. CLOSED TREE 2021-09-08 18:48:58 +03:00
Niklas Baumgardner 4b352f588f Bug 1534799 - Convert &searchTextBox.clear.label; to fluent. r=emalysz,fluent-reviewers,flod,dao,morgan
Differential Revision: https://phabricator.services.mozilla.com/D123640
2021-09-08 14:56:59 +00:00
Eitan Isaacson a6a943d0ea Bug 1729058 - Enable cache initialization in update pushes. r=morgan
There can be a scenario where an initial cache is pushed to an accessible via an update and not an "initial" push that a doc load or a subtree show would give.

For example, an accessible might not have a name, description, or numeric value (that is all we currently cache), but then get a name later in its lifetime. If that is the case the accessible will get a cache AccAttributes with a DeleteEntry value for "description" since its description is still empty. That entry should not be stored in the cache.

Differential Revision: https://phabricator.services.mozilla.com/D124484
2021-09-03 18:56:24 +00:00
Eitan Isaacson babc6af3e3 Bug 1728940 - Reverse reverted null check in ATK value functions. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D124480
2021-09-03 18:02:37 +00:00
Eitan Isaacson cf78c1b158 Bug 1728442 - P5: Use unified description method in xpcom and platforms. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D124237
2021-09-02 18:06:53 +00:00
Eitan Isaacson 513a9ecbf8 Bug 1728442 - P4: Use cached description in parent. r=Jamie
Also unify local/remote Description with an abstract definition in
Accessible.

Differential Revision: https://phabricator.services.mozilla.com/D124236
2021-09-02 18:06:52 +00:00
Eitan Isaacson e233a15fc7 Bug 1728442 - P3: Push description to cache. r=Jamie
Rely on name/description changes.

Differential Revision: https://phabricator.services.mozilla.com/D124235
2021-09-02 18:06:52 +00:00
Eitan Isaacson 338d221423 Bug 1728442 - P2: Make LocalAccessible:Description const. r=Jamie
This makes it consistent with the remote Description method and will
allow us to merge them in Accessible.

Differential Revision: https://phabricator.services.mozilla.com/D124234
2021-09-02 18:06:51 +00:00
Eitan Isaacson 73f172d0c6 Bug 1728442 - P1: Make browser description test rely on name/desc change events. r=Jamie
By using a real image, and not a broken one, we avoid the recreation
that happens when the image gains and loses an alt. We can then rely on
name/description changes.

This is a more accurate test that doesn't rely on tree mutations.

Differential Revision: https://phabricator.services.mozilla.com/D124233
2021-09-02 18:06:51 +00:00
Eitan Isaacson 675b299c9e Bug 1728624 - Null-check internal object in ATK value functions. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D124366
2021-09-02 16:50:41 +00:00
Eitan Isaacson 20b6875ab9 Bug 1728437 - Keep cache sparse and only store populated fields. r=Jamie
When constructing the initial cache, don't push empty or default fields.
Also, have a way to remove fields from an established cache if it
becomes empty/default.

Differential Revision: https://phabricator.services.mozilla.com/D124127
2021-09-01 22:20:09 +00:00
Eitan Isaacson 6c538e2f0e Bug 1728403 - Introduce CacheUpdateType as argument for Cache IPDL message. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D124117
2021-09-01 20:32:17 +00:00
Morgan Reschenberg 1e1c536fcd Bug 1728383: Fix test logging for getBounds r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D124096
2021-08-31 18:41:01 +00:00
Edgar Chen 262f7ec893 Bug 1728081 - Part 4: Make HTMLFormElement::GetDefaultSubmitElement return nsGenericHTMLFormElement; r=smaug
so that the callers don't need to queryInterface it back to nsIContent.

Differential Revision: https://phabricator.services.mozilla.com/D123952
2021-08-30 18:44:51 +00:00
Edgar Chen bae585f79e Bug 1728081 - Part 3: Merge nsIForm into HTMLFormElement; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D123951
2021-08-30 18:44:51 +00:00
Eitan Isaacson 251ad4f476 Bug 1727643 - P4: Make use of new common methods in platforms and XPCOM. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123698
2021-08-26 19:40:06 +00:00
Eitan Isaacson 2c5a1217db Bug 1727643 - P3: Make numeric value methods abstract in Accessible and wire it thru. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123697
2021-08-26 19:40:05 +00:00
Eitan Isaacson 17e9670742 Bug 1727643 - P2: Send numeric value fields to cache. r=morgan
Also added double to AccAttributes.

Differential Revision: https://phabricator.services.mozilla.com/D123696
2021-08-26 19:40:05 +00:00
Eitan Isaacson 3c7fe28200 Bug 1727643 - P1: Add cache convinience methods in LocalAccessible. r=morgan
Also introduce "cache domains" to have a shorthand for which things in
the cache needs to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D123695
2021-08-26 19:40:04 +00:00
Eitan Isaacson a926de70ee Bug 1727640 - Push name change cache updates on windows. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123688
2021-08-26 18:45:58 +00:00
Eitan Isaacson cc7e9cf3e8 Bug 1727616 - Add meter ARIA role. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D123674
2021-08-26 16:17:21 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Andi-Bogdan Postelnicu 093ebdff41 Bug 1725145 - reference implementation of doc accessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123527
2021-08-25 10:46:16 +00:00
Andi-Bogdan Postelnicu 54a355c786 Bug 1725145 - add static prefs include to accessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123455
2021-08-25 10:46:16 +00:00
Eitan Isaacson 5cbfe86b54 Bug 1727373 - Add state change info in event logging. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123529
2021-08-24 23:49:59 +00:00
Eitan Isaacson a972d7f962 Bug 1726845 - P2: Cache EXPANDABLE state in mozAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123264
2021-08-24 22:22:26 +00:00
Eitan Isaacson f840fc077c Bug 1726845 - P1: Remove special summary MOX class and update test. r=morgan
The summary class just had a moxExpanded which we already have in mozAccessible.
I think the former was added before the latter was generalized for aria-expanded usage.

Differential Revision: https://phabricator.services.mozilla.com/D123516
2021-08-24 22:22:25 +00:00
James Teh 6e56411410 Bug 1727227: Add a static assert to ensure that the size of the AccAttributes value variant isn't unintentionally changed. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D123415
2021-08-24 21:44:43 +00:00
Morgan Reschenberg c55f522302 Bug 1726695: Add support for RemoteAccessible's in MsaaAccessible::get_accName r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D123258
2021-08-23 15:39:50 +00:00
Michelle Goossens c7d34da2f9 Bug 1723574 - Enable mochitest-browser-chrome tests that no longer fail r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D123247
2021-08-23 12:45:31 +00:00
Andi-Bogdan Postelnicu 75ed803f7c Bug 1725145 - fixes for linking in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122344
2021-08-22 10:21:56 +00:00
Andi-Bogdan Postelnicu 250fa0d795 Bug 1725145 - header files fixes in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122343
2021-08-22 10:21:55 +00:00
Michelle Goossens d192833f8d Bug 1723574 - Migrate Windows 10 mochitest-browser-chrome suite from AWS to Azure r=jmaher,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122511
2021-08-20 20:55:02 +00:00
Morgan Reschenberg 94466e43ee Bug 1726644: Add waitForStateChange function to head.js export statement r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D123162
2021-08-19 21:36:41 +00:00
Morgan Reschenberg 224e6f9293 Bug 1720334: Represent checked/unchecked state with AXValue for treeitems r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D121215
2021-08-19 20:50:55 +00:00
Eitan Isaacson ace5987168 Bug 1726452 - Make Name an abstract Accessible method. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123018
2021-08-19 19:57:19 +00:00
Morgan Reschenberg 8a48fda373 Bug 1726606: Default browser.display.document_color_use to 1 on MacOS r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D123142
2021-08-19 17:44:44 +00:00
Gijs Kruitbosch d90c0bb57f Bug 1724718 - skip some XUL-y tests on android, r=emilio,agi
Depends on D122663

Differential Revision: https://phabricator.services.mozilla.com/D122664
2021-08-19 12:13:01 +00:00
Edgar Chen 3d5334b444 Bug 1726393 - Part 2: Rename nsIFormControl::GetFormElement to GetForm; r=smaug
Depends on D122995

Differential Revision: https://phabricator.services.mozilla.com/D122996
2021-08-19 09:20:24 +00:00
James Teh 1454a64119 Bug 1725916: Ensure an Accessible is created if aria-description is set. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D122850
2021-08-18 23:37:31 +00:00
Ryan VanderMeulen 8a7ca74965 Bug 1726391 - Only try to build DocAccessibleTypes.ipdlh if accessibility is enabled. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D122974
2021-08-18 16:17:48 +00:00
Eitan Isaacson 5090a9049a Bug 1700264 - Cache names. r=Jamie
Eventually we will want to add the Name method as an abstract method in
Accessible and implemented it platform-independent in
RemoteAccessibleBase.

Differential Revision: https://phabricator.services.mozilla.com/D121925
2021-08-17 18:17:39 +00:00
Eitan Isaacson b3e528f978 Bug 1700263 - Implement async Cache protocol method. r=Jamie
This is a good place to formalize the following naming convention:
 * A "field" is and direct accessible getter method (name,
   role, value, min, max, etc.)
 * An "attribute" is a member of the "attributes" field.

With that said, I think AccAttributes should probably be named
AccProperties or something of the sort. Might leave that for another
time.

Differential Revision: https://phabricator.services.mozilla.com/D121924
2021-08-17 18:17:38 +00:00
Eitan Isaacson dfc900e0e4 Bug 1700263 - Split serialize function into a flatten, and then serialize. r=Jamie
This will allow us to use the list of accessibles to be serialized later
for pushing a cache. The single array also gives us an opportunity to
paginate the cache, if needed.

Differential Revision: https://phabricator.services.mozilla.com/D121923
2021-08-17 18:17:38 +00:00
James Teh 299944292f Bug 1725894: Support IEnumVARIANT for RemoteAccessible when the cache is enabled. r=morgan
As part of this, I changed RemoteAccessible::RemoteChildAt (and thus RemoteAccessible::ChildAt) so it doesn't crash when passed an invalid child index.
Our EnumVariant implementation relied on this with LocalChildAt.
I think it makes sense for LocalChildAt, RemoteChildAt and ChildAt to be consistent in this regard.

Differential Revision: https://phabricator.services.mozilla.com/D122681
2021-08-17 11:17:50 +00:00
James Teh 6b226a31b2 Bug 1725449: Don't support IEnumVARIANT for local OuterDocAccessibles with remote children when the cache isn't enabled. r=morgan
Prior to this patch, we reported that we supported IEnumVARIANT, but it wouldn't return any children, causing the oleacc AccessibleChildren function to report no children to clients.
This is tricky to support due to the special COM proxy stuff we have to do for remote children without the cache.
There's no benefit to IEnumVARIANT with only one child anyway, so it's easiest to just say we don't support it.
The oleacc AccessibleChildren function will detect this and fall back to IAccessible::get_accChild instead.

I also took the opportunity to fix a slightly related outdated comment I spotted while figuring out the fix here.

Differential Revision: https://phabricator.services.mozilla.com/D122674
2021-08-17 00:43:06 +00:00
Eitan Isaacson d3e048885d Bug 1723563 - Get activated state from widget instead of storing it. r=Jamie
Firefox shows a blank window and then swaps it for the real thing for
percieved startup performance. This causes us to throw away the
activated state stored on the initial root widget. Instead of storing
the state, we should retrieve it from widget.

Differential Revision: https://phabricator.services.mozilla.com/D122168
2021-08-12 21:12:32 +00:00
Butkovits Atila 69c0a6cb2c Backed out changeset b70a28c9a533 (bug 1723563) for causing failures on browser_accessibility_indicator.js. CLOSED TREE 2021-08-10 22:25:00 +03:00
Eitan Isaacson afdc2b3bcc Bug 1723563 - Get activated state from widget instead of storing it. r=Jamie
Firefox shows a blank window and then swaps it for the real thing for
percieved startup performance. This causes us to throw away the
activated state stored on the initial root widget. Instead of storing
the state, we should retrieve it from widget.

Differential Revision: https://phabricator.services.mozilla.com/D122168
2021-08-10 16:24:40 +00:00
Emilio Cobos Álvarez 2d0a072174 Bug 1723921 - Cleanup nsComputedDOMStyle and related APIs. r=layout-reviewers,jfkthame
This will make implementing the new behavior behind a pref
really straight-forward, and is generally nicer.

Depends on D121858

Differential Revision: https://phabricator.services.mozilla.com/D121705
2021-08-07 09:47:15 +00:00