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

9236 Коммитов

Автор SHA1 Сообщение Дата
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
Eitan Isaacson 3036704f67 Bug 1724173 - Check range is valid before selecting in mozTextAccessible. r=morgan
We do this in MOXTextMarkerDelegate already.

Differential Revision: https://phabricator.services.mozilla.com/D122010
2021-08-06 21:31:22 +00:00
Ben Hearsum aecb82dbfc Bug 1714200: skip failing mochitest-browser-chrome tests on M1 machines r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121221
2021-08-06 19:16:54 +00:00
Sebastian Streich 0818b99745 Bug 1721146 - Fix Missing ReferrerInfo on Blocked Downloads r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121608
2021-08-06 12:22:59 +00:00
Eitan Isaacson 7255c6bf8e Bug 1723614 - P2: Robustify name change events and use events in name tests. r=Jamie
Changed the browser and mochitest name tests to rely exclusively on name change
events. To make this happen, I fixed all the cases where we were
event-deficient in the code:

* Examine target in PushNameOrDescriptionChange if it has eNameFromSubtreeRule.
  Fixes cases where a text change event happens with the subtree name root as target.
* Change in aria-labelledby should always result in a name change event because
  that attribute has highest prescedence.
* Add eHasNameDependent/eHasDescriptionDependent context flags when dependee accessible
  is added after dependent accessible to tree.
* Handle value attribute change in HTML buttons and determine if they should trigger a
  name changed event.
* Use accessible tree instead of content tree when calculating HTMLSelectOptionAccessible
  name, this keeps the PushNameOrDescriptionChange sees in name flags consistent with
  the actual tree.
* Handle label attribute change in select options and determine if they should trigger
  a name changed event.
* Determine if s summary attribute change on a table triggers a name change event.
* If a title attribute is changed, reliably fire a name change event if
  it is used in name calculation.

Differential Revision: https://phabricator.services.mozilla.com/D121580
2021-08-05 23:04:17 +00:00
Eitan Isaacson caafeaea2a Bug 1723614 - P1: Override DOMAttributeChanged where it makes sense. r=Jamie
Added a MIXED state change event when progress goes from determinate to
undeterminate.

Differential Revision: https://phabricator.services.mozilla.com/D121579
2021-08-05 23:04:17 +00:00
Emilio Cobos Álvarez 0c427cb231 Bug 1714290 - Don't flush in XULTreeGridAccessible. r=Jamie
If comment 5 is right, I don't think that this should be needed.

Differential Revision: https://phabricator.services.mozilla.com/D121711
2021-08-05 10:52:52 +00:00
Eitan Isaacson da0fa820e2 Bug 1722396 - P3: Compare old state bits with new ones to determine state change events. r=morgan
Needed to tweak tests a bit because the code is now more descerning
wheter to fire an event or not. Will do so only if the state actually
changes.

Depends on D120901

Differential Revision: https://phabricator.services.mozilla.com/D120902
2021-08-04 21:31:19 +00:00
Eitan Isaacson 1924362000 Bug 1722396 - P2: Move AttributeChangedImpl into LocalAccessible::DOMAttributeChanged. r=morgan
Also folded ARIAAttributeChanged into DOMAttributeChanged temporarily.
Will streamline that further in the next patch where state changes are
done a bit better.

Depends on D120900

Differential Revision: https://phabricator.services.mozilla.com/D120901
2021-08-04 21:31:19 +00:00
Eitan Isaacson 0867ef1f8f Bug 1722396 - P1: Remove DocAccessible::mARIAAttrOldValue. r=morgan
The AttributeChanged callback includes the old value, so there isn't a
reason to store this from AttributeWillChange.

Differential Revision: https://phabricator.services.mozilla.com/D120900
2021-08-04 21:31:18 +00:00
Alexandru Michis 661015792f Backed out changeset 1c892391a0e1 (bug 1721146) for causing dt failures in browser_console_clear_cache.js
CLOSED TREE
2021-08-04 17:09:12 +03:00
Sebastian Streich 68c14d7f64 Bug 1721146 - Fix Missing ReferrerInfo on Blocked Downloads r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121608
2021-08-04 12:41:16 +00:00
Marian-Vasile Laza 237ee94bb0 Backed out 3 changesets (bug 1722396) for causing gv-junit test failures. CLOSED TREE
Backed out changeset 086278457495 (bug 1722396)
Backed out changeset ea0639278659 (bug 1722396)
Backed out changeset 9c723d30ef5f (bug 1722396)
2021-08-04 07:29:15 +03:00
Eitan Isaacson 0e6ae6e8d0 Bug 1720185 - If a child is a member of name calc subtree, fire event on container when it changes. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D119663
2021-08-03 20:31:52 +00:00
Eitan Isaacson f188c700db Bug 1722396 - P3: Compare old state bits with new ones to determine state change events. r=morgan
Needed to tweak tests a bit because the code is now more descerning
wheter to fire an event or not. Will do so only if the state actually
changes.

Depends on D120901

Differential Revision: https://phabricator.services.mozilla.com/D120902
2021-08-03 20:23:20 +00:00
Eitan Isaacson d715681b78 Bug 1722396 - P2: Move AttributeChangedImpl into LocalAccessible::DOMAttributeChanged. r=morgan
Also folded ARIAAttributeChanged into DOMAttributeChanged temporarily.
Will streamline that further in the next patch where state changes are
done a bit better.

Depends on D120900

Differential Revision: https://phabricator.services.mozilla.com/D120901
2021-08-03 20:23:19 +00:00
Eitan Isaacson 3e83dc6403 Bug 1722396 - P1: Remove DocAccessible::mARIAAttrOldValue. r=morgan
The AttributeChanged callback includes the old value, so there isn't a
reason to store this from AttributeWillChange.

Differential Revision: https://phabricator.services.mozilla.com/D120900
2021-08-03 20:23:19 +00:00
Iulian Moraru a38ff322aa Backed out changeset 6bcd0226a473 (bug 1721146) for causing xpcshell failures on test_DownloadLegacy.js. CLOSED TREE 2021-08-03 17:54:05 +03:00
Sebastian Streich fd0013fc0c Bug 1721146 - Fix Missing ReferrerInfo on Blocked Downloads r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121608
2021-08-03 13:51:02 +00:00
Dorel Luca 41530b2055 Backed out 3 changesets (bug 1722396) for Linting failure in accessible/tests/browser/mac/browser_aria_expanded.js. CLOSED TREE
Backed out changeset 86fc719a7a94 (bug 1722396)
Backed out changeset 02dea4423d5d (bug 1722396)
Backed out changeset 22f85fd34b27 (bug 1722396)
2021-08-03 02:48:13 +03:00
Eitan Isaacson b1dff1168e Bug 1722396 - P3: Compare old state bits with new ones to determine state change events. r=morgan
Needed to tweak tests a bit because the code is now more descerning
wheter to fire an event or not. Will do so only if the state actually
changes.

Depends on D120901

Differential Revision: https://phabricator.services.mozilla.com/D120902
2021-08-02 22:51:50 +00:00
Eitan Isaacson 7f9ccc4dce Bug 1722396 - P2: Move AttributeChangedImpl into LocalAccessible::DOMAttributeChanged. r=morgan
Also folded ARIAAttributeChanged into DOMAttributeChanged temporarily.
Will streamline that further in the next patch where state changes are
done a bit better.

Depends on D120900

Differential Revision: https://phabricator.services.mozilla.com/D120901
2021-08-02 22:51:49 +00:00
Eitan Isaacson 175bbedef8 Bug 1722396 - P1: Remove DocAccessible::mARIAAttrOldValue. r=morgan
The AttributeChanged callback includes the old value, so there isn't a
reason to store this from AttributeWillChange.

Differential Revision: https://phabricator.services.mozilla.com/D120900
2021-08-02 22:51:49 +00:00
Narcis Beleuzu acb7240df4 Backed out changeset 3564b76b9334 (bug 1720334) for bc failure on browser_outline.js . CLOSED TREE 2021-08-02 23:22:00 +03:00
Morgan Reschenberg f57cc30276 Bug 1720334: Represent checked/unchecked state with AXValue for treeitems r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D121215
2021-08-02 19:41:21 +00:00
James Teh f2a0bfe104 Bug 1722621: Fix detection of autocomplete popups in XULListboxAccessible after recent DOM changes. r=morgan
Previously, we used GetFlattenedTreeParent from the list box to find the autocomplete popup.
After bug 1708735, this now returns a slot instead of the panel.
We now use GetParentElement instead, which works as expected and is consistent with other code in this class anyway.

I also added a new test so this doesn't regress yet again.
We already have test_focus_autocomplete.xhtml which is supposed to test this, but that test is broken, was thus disabled and is complicated enough that I don't think we're going to fix it any time soon, if ever.

The new test was triggering an assertion on Windows when trying to handle a caret event, so HyperTextAccessible::GetCaretRect had to be tweaked slightly to fix this.

Differential Revision: https://phabricator.services.mozilla.com/D121163
2021-07-30 18:03:04 +00:00
Mike Hommey 03223f9ea4 Bug 1722653 - Remove MOZ_CAIRO_CFLAGS. r=firefox-build-system-reviewers,jgilbert,andi
Differential Revision: https://phabricator.services.mozilla.com/D121066
2021-07-29 23:38:31 +00:00
Noemi Erli d68b5533d1 Backed out 4 changesets (bug 1722396) for causing multiple failures CLOSED TREE
Backed out changeset 3fcd2aa75f63 (bug 1722396)
Backed out changeset 52cc9f22fbd8 (bug 1722396)
Backed out changeset 20b2120a002a (bug 1722396)
Backed out changeset e2cf9edf5d73 (bug 1722396)
2021-07-30 01:39:18 +03:00
Csoregi Natalia 23c2e310ac Bug 1722396 - Fix eslint. r=lint-fix CLOSED TREE 2021-07-30 01:03:47 +03:00
Eitan Isaacson f2ee930b01 Bug 1722396 - P3: Compare old state bits with new ones to determine state change events. r=morgan
Needed to tweak tests a bit because the code is now more descerning
wheter to fire an event or not. Will do so only if the state actually
changes.

Depends on D120901

Differential Revision: https://phabricator.services.mozilla.com/D120902
2021-07-29 20:22:27 +00:00
Eitan Isaacson db6ef08baf Bug 1722396 - P2: Move AttributeChangedImpl into LocalAccessible::DOMAttributeChanged. r=morgan
Also folded ARIAAttributeChanged into DOMAttributeChanged temporarily.
Will streamline that further in the next patch where state changes are
done a bit better.

Depends on D120900

Differential Revision: https://phabricator.services.mozilla.com/D120901
2021-07-29 20:22:27 +00:00
Eitan Isaacson 4e671c8353 Bug 1722396 - P1: Remove DocAccessible::mARIAAttrOldValue. r=morgan
The AttributeChanged callback includes the old value, so there isn't a
reason to store this from AttributeWillChange.

Differential Revision: https://phabricator.services.mozilla.com/D120900
2021-07-29 20:22:27 +00:00
James Teh 500cfa49c4 Bug 1721666: Clear the embedder accessible on PBrowserBridge if that accessible is destroyed. r=eeejay
If an iframe is hidden, its OuterDocAccessible will be destroyed, but the PBrowserBridge still exists.
Since the OuterDocAccessible was destroyed, its id can be reused.
Therefore, if a new embedder accessible hasn't already been set, clear the embedder accessible on PBrowserBridge.
This ensures that the wrong accessible can't accidentally be used when an OOP iframe document is added while the iframe is hidden.

Differential Revision: https://phabricator.services.mozilla.com/D121015
2021-07-28 23:42:12 +00:00
Dorel Luca 481b88403e Backed out 3 changesets (bug 1722396) for Devtools failures in devtools/server/tests/browser/browser_accessibility_node_events.js. CLOSED TREE
Backed out changeset cda26075ae09 (bug 1722396)
Backed out changeset d953dc56b027 (bug 1722396)
Backed out changeset a1cbf6bbf0c3 (bug 1722396)
2021-07-29 01:47:13 +03:00
Eitan Isaacson 5318f826b9 Bug 1722396 - P3: Compare old state bits with new ones to determine state change events. r=morgan
Needed to tweak tests a bit because the code is now more descerning
wheter to fire an event or not. Will do so only if the state actually
changes.

Depends on D120901

Differential Revision: https://phabricator.services.mozilla.com/D120902
2021-07-28 22:04:19 +00:00
Eitan Isaacson fdf6272022 Bug 1722396 - P2: Move AttributeChangedImpl into LocalAccessible::DOMAttributeChanged. r=morgan
Also folded ARIAAttributeChanged into DOMAttributeChanged temporarily.
Will streamline that further in the next patch where state changes are
done a bit better.

Differential Revision: https://phabricator.services.mozilla.com/D120901
2021-07-28 22:04:18 +00:00
Eitan Isaacson 61f3152be8 Bug 1722396 - P1: Remove DocAccessible::mARIAAttrOldValue. r=morgan
The AttributeChanged callback includes the old value, so there isn't a
reason to store this from AttributeWillChange.

Differential Revision: https://phabricator.services.mozilla.com/D120900
2021-07-28 22:04:18 +00:00
Christoph Kerschbaumer 4a6250387f Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 19:16:16 +00:00
Sandor Molnar 68cdec0548 Backed out changeset 7eb8945dd8e3 (bug 1719272) for causing bustages in gecko decision task. CLOSED TREE 2021-07-28 19:47:06 +03:00
Christoph Kerschbaumer bb716f0701 Bug 1719272: Annotate failing browser/ tests to potentially enable https-first mode in Nightly r=webcompat-reviewers,denschub,webdriver-reviewers,preferences-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119177
2021-07-28 16:08:07 +00:00
Morgan Reschenberg 180c20349b Bug 1721390: Add moxExpanded to mozAccessible r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D121003
2021-07-27 22:47:36 +00:00
Eitan Isaacson d0303f3525 Bug 1722394 - Slim AccAttributes::AttrValueType by removing nsString. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D120897
2021-07-26 21:38:48 +00:00
Iulian Moraru a4ec557be4 Bug 1652192 - disable browser_test_visibility.js on windows_10_64_qr for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120786
2021-07-26 19:04:50 +00:00
Rob Lemley a82a4bf011 Bug 1670147 - Set values for AccessibleHandler.dll CLSID/IIDs at configure time. r=Jamie,firefox-build-system-reviewers,glandium
Allow for downstream projects such as Thunderbird to set different GUIDs for
AccessibleHandler to avoid clashes when both applications are installed.
The GUIDs themselves can be defined in confvars.sh or in branding/configure.sh
depending on the specific needs of the application. Fallback GUIDs are in
old-configure.

Differential Revision: https://phabricator.services.mozilla.com/D118124
2021-07-26 13:43:36 +00:00
Morgan Reschenberg a58920e618 Bug 1694571: Replace AccessibleOrProxy's with Accessible's r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D117927
2021-07-22 17:58:49 +00:00
Kashav Madan 5781dca888 Bug 1720688 - Support extended attribute syntax in protocol declarations, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D119975
2021-07-22 02:24:43 +00:00
Butkovits Atila d44caab816 Bug 1484212 - disable browser_test_focus_dialog.js on Win_64_qr_opt for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120205
2021-07-21 22:55:38 +00:00
James Teh ca92a8ae5a Bug 1715230 part 6: Remove IsProxy() checks throughout the Windows a11y code. r=morgan
Now that ProxyWrappers (RemoteAccessibleWrap and friends) are gone, IsProxy() can never be true, so checking it is pointless.

Differential Revision: https://phabricator.services.mozilla.com/D117536
2021-07-19 03:44:11 +00:00
James Teh 5aa62c8d87 Bug 1715230 part 5: Remove Windows ProxyWrappers! r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D117529
2021-07-19 03:44:11 +00:00
James Teh dca5bf0440 Bug 1715230 part 4: Stop using RemoteAccessibleWrap! r=morgan
Previously, when the cache was disabled, we had a RemoteAccessibleWrap for every RemoteAccessible.
This is no longer necessary and now only serves as an extra level of indirection and memory waste.
We still keep the stub MsaaAccessible to hold the id sent up from content.

Differential Revision: https://phabricator.services.mozilla.com/D117528
2021-07-19 03:44:10 +00:00