Commit Graph
165 Commits
Author SHA1 Message Date
Daniel Holbert b4e4f5d2f5 Bug 2038733: Use MakeRefPtr to do allocation for local RefPtr variables, in accessible/. r=accessibility-platform-reviewers,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D299763
2026-05-12 07:20:02 +00:00
Emilio Cobos Álvarez 1ddad57128 Bug 2034055 - Clean up NodeList / HTMLCollection set-up. r=smaug
Make them concrete classes rather than interfaces, and make the
inheritance chain simpler.

Differential Revision: https://phabricator.services.mozilla.com/D296484
2026-04-28 07:38:27 +00:00
Silaghi ce61f876cc Revert "Bug 2034055 - Clean up NodeList / HTMLCollection set-up. r=smaug" for causing wpt failures at BaseContentList
This reverts commit cde3e5607b.
2026-04-28 03:43:46 +00:00
Emilio Cobos Álvarez cde3e5607b Bug 2034055 - Clean up NodeList / HTMLCollection set-up. r=smaug
Make them concrete classes rather than interfaces, and make the
inheritance chain simpler.

Differential Revision: https://phabricator.services.mozilla.com/D296484
2026-04-28 00:24:11 +00:00
Sylvestre Ledru eafe8b152d Bug 2023419 - Remove Emacs/Vim modelines from accessible/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287834
2026-03-18 10:29:47 +00:00
Serban Stanca 5a709d4a9a Revert "Bug 2023419 - Remove Emacs/Vim modelines from accessible/ r=emilio" for causing mochitests failures in browser_action.js.
This reverts commit 2fa4815c8d.
2026-03-17 15:34:26 +00:00
Sylvestre Ledru 2fa4815c8d Bug 2023419 - Remove Emacs/Vim modelines from accessible/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287834
2026-03-17 09:21:51 +00:00
James Teh d6ff088a61 Bug 2010498 part 3: For LocalAccessible, use textbox value calculation for HTML text input/textarea, AKA HTMLTextFieldAccessible. r=morgan
Now that textbox value calculation doesn't compress whitespace, etc., we can use it for HTMlTextFieldAccessible rather than querying the value from DOM.
There should be no user visible difference.
However, this simplifies our code and makes it consistent with what is possible in RemoteAccessible, which obviously doesn't have access to DOM.

One tiny difference is that the value no longer updates synchronously, since it is now based on the accessibility tree (which updates async) rather than querying DOM.
mochitests/value/test_password.html relied on this synchronous behaviour, so it has been removed in favour of the browser tests added in part 1 of this stack.
Those browser tests for password inputs will also be expanded in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D279972
2026-01-23 06:06:45 +00:00
Cristian Tuns bb09486807 Revert "Bug 2010498 part 4: Don't include the value of HTMLTextFieldAccessibles in the RemoteAccessible cache. r=morgan" for causing build bustages in RemoteAccessible.cpp
This reverts commit 763c1c8083.

Revert "Bug 2010498 part 3: For LocalAccessible, use textbox value calculation for HTML text input/textarea, AKA HTMLTextFieldAccessible. r=morgan"

This reverts commit 1dc286a790.

Revert "Bug 2010498 part 2: Use the text content from the subtree when calculating the value of role=textbox/contentEditable, not nsTextEquivUtils. r=morgan"

This reverts commit 70ca939007.

Revert "Bug 2010498 part 1: Add a11y browser tests for value of <input>, <textarea> and <input type="password"> elements. r=morgan"

This reverts commit ecc02c2433.
2026-01-23 04:49:35 +00:00
James Teh 1dc286a790 Bug 2010498 part 3: For LocalAccessible, use textbox value calculation for HTML text input/textarea, AKA HTMLTextFieldAccessible. r=morgan
Now that textbox value calculation doesn't compress whitespace, etc., we can use it for HTMlTextFieldAccessible rather than querying the value from DOM.
There should be no user visible difference.
However, this simplifies our code and makes it consistent with what is possible in RemoteAccessible, which obviously doesn't have access to DOM.

One tiny difference is that the value no longer updates synchronously, since it is now based on the accessibility tree (which updates async) rather than querying DOM.
mochitests/value/test_password.html relied on this synchronous behaviour, so it has been removed in favour of the browser tests added in part 1 of this stack.
Those browser tests for password inputs will also be expanded in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D279972
2026-01-23 04:17:36 +00:00
Alice Boxhall d5493de262 Bug 1981346 - Add referenceTarget support for the form attribute. r=credential-management-reviewers,webidl,dimi,Jamie,smaug
This change adds attr-associated element observers, which observe changes in the element associated with a single-element attribute.
For example, if an element has an attribute |attr| with a value |value|, and an AttrTargetObserver has been added for |attr| on that element, the observer would fire if an element with an ID matching |value| was added to the element's document or shadow root.

Attr-associated element observers are tracked in mAttrElementObserverMap in an element's nsExtendedDOMSlots.

An attr-associated element can change in multiple ways:
- The attribute value changes;
- An element matching the content attribute value is added or removed from the element's document or shadow root;
- The explicitly-set attr element is added or removed from the element's document or shadow root;
- The resolved reference target for the explicitly set attr-element or the element whose ID matches the string value of the attribute changes.

The resolved reference target can likewise change in multiple ways:
- The referenceTarget property of the element's shadow root is added, changed or removed;
- An element whose ID matches the element's shadow root's referenceTarget value is added or removed from the shadow root;
- The resolved reference target of the element whose ID matches the shadow root's referenceTarget value changes.

These changes are tracked via reference target change observers, which observe changes to an element's resolved reference target.
Reference target change observers are added on the host element's document or shadow root, and fired when one of the above circumstances occurs.

Differential Revision: https://phabricator.services.mozilla.com/D261367
2026-01-14 18:03:46 +00:00
Sandor Molnar 8faede9a1f Revert "Bug 1981349 - Add referenceTarget support for label/for, label wrapped and output/for. r=credential-management-reviewers,webidl,dimi,Jamie,smaug" for causing accessibility crashes (bug 2008970)
This reverts commit d46abe6d76.

Revert "Bug 1981346 - Add referenceTarget support for the form attribute. r=credential-management-reviewers,webidl,dimi,Jamie,smaug"

This reverts commit df11a4666d.

Revert "Bug 1981345 - Implement referenceTarget support for multiple element attributes. r=dom-core,Jamie,smaug"

This reverts commit 89cc779f5e.

Revert "Bug 1984685 - Refactor: consistently return Maybe<nsTArray<RefPtr<Element>>> when getting attr-associated elements, and key AttrRelProviders on nsAtom rather than nsString. r=dom-core,morgan,Jamie,smaug"

This reverts commit 33130e712d.

Revert "Bug 1981344 - Implement referenceTarget support for single-element attributes. r=dom-core,credential-management-reviewers,webidl,layout-reviewers,emilio,keithamus,smaug,mtigley"

This reverts commit d6440c4cae.

Revert "Bug 1983766 - Split single element attribute getters into bindings/internals versions. r=dom-core,credential-management-reviewers,webidl,layout-reviewers,smaug,keithamus,jwatt,mtigley"

This reverts commit 83b70e0645.

Revert "Bug 1989323 - Make `referenceTarget` IDL attributes on ShadowRoot, HTMLTemplateElement and ShadowRootInit nullable. r=dom-core,webidl,saschanaz,smaug"

This reverts commit 3a0b29121e.
2026-01-07 16:08:51 +00:00
Alice Boxhall df11a4666d Bug 1981346 - Add referenceTarget support for the form attribute. r=credential-management-reviewers,webidl,dimi,Jamie,smaug
This change adds attr-associated element observers, which observe changes in the element associated with a single-element attribute.
For example, if an element has an attribute |attr| with a value |value|, and an AttrTargetObserver has been added for |attr| on that element, the observer would fire if an element with an ID matching |value| was added to the element's document or shadow root.

Attr-associated element observers are tracked in mAttrElementObserverMap in an element's nsExtendedDOMSlots.

An attr-associated element can change in multiple ways:
- The attribute value changes;
- An element matching the content attribute value is added or removed from the element's document or shadow root;
- The explicitly-set attr element is added or removed from the element's document or shadow root;
- The resolved reference target for the explicitly set attr-element or the element whose ID matches the string value of the attribute changes.

The resolved reference target can likewise change in multiple ways:
- The referenceTarget property of the element's shadow root is added, changed or removed;
- An element whose ID matches the element's shadow root's referenceTarget value is added or removed from the shadow root;
- The resolved reference target of the element whose ID matches the shadow root's referenceTarget value changes.

These changes are tracked via reference target change observers, which observe changes to an element's resolved reference target.
Reference target change observers are added on the host element's document or shadow root, and fired when one of the above circumstances occurs.

Differential Revision: https://phabricator.services.mozilla.com/D261367
2026-01-06 16:16:26 +00:00
iulian moraru e162366a25 Revert "Bug 1981349, Bug 1981346, Bug 1981345, Bug 1984685, Bug 1981344, Bug 1983766, Bug 1989323 - Add referenceTarget support for label/for, label wrapped and output/for. r=credential-management-reviewers,webidl,dimi,Jamie,smaug" for causing android build bustages.
This reverts commit 1b5cf4cdf8.

Revert "Bug 1981346 - Add referenceTarget support for the form attribute. r=credential-management-reviewers,webidl,dimi,Jamie,smaug"

This reverts commit 2394d9205a.

Revert "Bug 1981345 - Implement referenceTarget support for multiple element attributes. r=dom-core,Jamie,smaug"

This reverts commit 571a17ff82.

Revert "Bug 1984685 - Refactor: consistently return Maybe<nsTArray<RefPtr<Element>>> when getting attr-associated elements, and key AttrRelProviders on nsAtom rather than nsString. r=dom-core,morgan,Jamie,smaug"

This reverts commit 3b389fdd62.

Revert "Bug 1981344 - Implement referenceTarget support for single-element attributes. r=dom-core,credential-management-reviewers,webidl,layout-reviewers,emilio,keithamus,smaug,mtigley"

This reverts commit 5cc2a12756.

Revert "Bug 1983766 - Split single element attribute getters into bindings/internals versions. r=dom-core,credential-management-reviewers,webidl,layout-reviewers,smaug,keithamus,jwatt,mtigley"

This reverts commit 68e2d26aa9.

Revert "Bug 1989323 - Make `referenceTarget` IDL attributes on ShadowRoot, HTMLTemplateElement and ShadowRootInit nullable. r=dom-core,webidl,saschanaz,smaug"

This reverts commit 1234b31599.
2025-12-24 15:16:52 +00:00
Alice Boxhall 2394d9205a Bug 1981346 - Add referenceTarget support for the form attribute. r=credential-management-reviewers,webidl,dimi,Jamie,smaug
This change adds attr-associated element observers, which observe changes in the element associated with a single-element attribute.
For example, if an element has an attribute |attr| with a value |value|, and an AttrTargetObserver has been added for |attr| on that element, the observer would fire if an element with an ID matching |value| was added to the element's document or shadow root.

Attr-associated element observers are tracked in mAttrElementObserverMap in an element's nsExtendedDOMSlots.

An attr-associated element can change in multiple ways:
- The attribute value changes;
- An element matching the content attribute value is added or removed from the element's document or shadow root;
- The explicitly-set attr element is added or removed from the element's document or shadow root;
- The resolved reference target for the explicitly set attr-element or the element whose ID matches the string value of the attribute changes.

The resolved reference target can likewise change in multiple ways:
- The referenceTarget property of the element's shadow root is added, changed or removed;
- An element whose ID matches the element's shadow root's referenceTarget value is added or removed from the shadow root;
- The resolved reference target of the element whose ID matches the shadow root's referenceTarget value changes.

These changes are tracked via reference target change observers, which observe changes to an element's resolved reference target.
Reference target change observers are added on the host element's document or shadow root, and fired when one of the above circumstances occurs.

Differential Revision: https://phabricator.services.mozilla.com/D261367
2025-12-24 13:41:54 +00:00
Eitan Isaacson fc164e80c2 Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan
In the case of a file input, never return eNameFromRelations in order to
force a cache of the name.

Depends on D272726

Differential Revision: https://phabricator.services.mozilla.com/D272727
2025-11-21 19:10:18 +00:00
Eitan Isaacson 531786f6a1 Bug 1998242 - P4: Break up name calculation to allow remote subtree calc. r=morgan
LocalAccessible::Name now has 3 parts:
1. DirectName() - Gets name from aria and native attributes and labels, if
   nothing retrieved:
2. nsTextEquivUtils::GetNameFromSubtree() - Walks the accessible subtree
   to construct a name. If nothing retrieved:
3. Tooltip - get the name from the accessible's toolkit.

Since GetNameFromSubtree is factored out of NativeName, falling back
on alt and value in input[type=image] doesn't work anymore. But this
just brings us more in line with how regular img element names are
calculated, so I think that is fine.

Depends on D271311

Differential Revision: https://phabricator.services.mozilla.com/D271312
2025-11-21 19:10:07 +00:00
Eitan Isaacson 2ef785703f Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan
Mark Name() as final in LocalAccessible and RemoteAccessible, and rely
on DirectName for overriding name calculation in local accessibles.

Depends on D271310

Differential Revision: https://phabricator.services.mozilla.com/D271311
2025-11-21 19:10:04 +00:00
Cristina Horotan 5e77cab491 Revert "Bug 1998242, 1998255: apply code formatting via Lando" for causing wpt failures on /comp_tooltip.html DONTBUILD
This reverts commit 7b7f37ff69.

Revert "Bug 1998255 - P4: Calculate labeled names remotely. r=morgan"

This reverts commit 7265cce8b1.

Revert "Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan"

This reverts commit dbe3c2b954.

Revert "Bug 1998255 - P2: Have GetTextEquivFromIDRefs return true if it used hidden content or referenced itself. r=morgan"

This reverts commit f30cc8c2c8.

Revert "Bug 1998255 - P1: Intro and use ArrayAccIterator. r=morgan"

This reverts commit 312430263f.

Revert "Bug 1998242 - P5: Perform subtree name calculation in RemoteAccessible::Name. r=morgan"

This reverts commit 4deac16ef9.

Revert "Bug 1998242 - P4: Break up name calculation to allow remote subtree calc. r=morgan"

This reverts commit ab72073e90.

Revert "Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan"

This reverts commit 6f8ce31065.

Revert "Bug 1998242 - P2: Don't rely on NativeName override to suppress subtree name calc. r=morgan"

This reverts commit 1fbfdefcef.

Revert "Bug 1998242 - P1: Factor out tooltip calculation. r=morgan"

This reverts commit 695b65952f.
2025-11-21 11:15:27 +00:00
Eitan Isaacson dbe3c2b954 Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan
In the case of a file input, never return eNameFromRelations in order to
force a cache of the name.

Depends on D272726

Differential Revision: https://phabricator.services.mozilla.com/D272727
2025-11-21 06:40:37 +00:00
Eitan Isaacson 6f8ce31065 Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan
Mark Name() as final in LocalAccessible and RemoteAccessible, and rely
on DirectName for overriding name calculation in local accessibles.

Depends on D271310

Differential Revision: https://phabricator.services.mozilla.com/D271311
2025-11-21 06:40:23 +00:00
iulian moraru f06208ee3f Revert "Bug 1998242, Bug 1998255 1998255: apply code formatting via Lando" for causing dt failures on browser_accessibility_print_to_json.js.
This reverts commit d42283eaec.

Revert "Bug 1998255 - P4: Calculate labeled names remotely. r=morgan"

This reverts commit 4684fdbfa0.

Revert "Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan"

This reverts commit 15919fad2f.

Revert "Bug 1998255 - P2: Have GetTextEquivFromIDRefs return true if it used hidden content or referenced itself. r=morgan"

This reverts commit 2b6d3df0da.

Revert "Bug 1998255 - P1: Intro and use ArrayAccIterator. r=morgan"

This reverts commit c6454665b0.

Revert "Bug 1998242 - P5: Perform subtree name calculation in RemoteAccessible::Name. r=morgan"

This reverts commit 0629edfc29.

Revert "Bug 1998242 - P4: Break up name calculation to allow remote subtree calc. r=morgan"

This reverts commit 24e6864b25.

Revert "Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan"

This reverts commit 63a23a03e0.

Revert "Bug 1998242 - P2: Don't rely on NativeName override to suppress subtree name calc. r=morgan"

This reverts commit 95638bb76c.

Revert "Bug 1998242 - P1: Factor out tooltip calculation. r=morgan"

This reverts commit 25a9efa9b2.
2025-11-21 01:23:56 +00:00
Eitan Isaacson 15919fad2f Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan
In the case of a file input, never return eNameFromRelations in order to
force a cache of the name.

Depends on D272726

Differential Revision: https://phabricator.services.mozilla.com/D272727
2025-11-20 20:07:56 +00:00
Eitan Isaacson 63a23a03e0 Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan
Mark Name() as final in LocalAccessible and RemoteAccessible, and rely
on DirectName for overriding name calculation in local accessibles.

Depends on D271310

Differential Revision: https://phabricator.services.mozilla.com/D271311
2025-11-20 20:07:41 +00:00
Atila Butkovits 3f6df22bce Revert "Bug 1998242, Bug 1998255: apply code formatting via Lando" for causing failures at browser_selectables.js.
This reverts commit d0c68a8888.

Revert "Bug 1998255 - P4: Calculate labeled names remotely. r=morgan"

This reverts commit 3bfddbb990.

Revert "Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan"

This reverts commit a66669765f.

Revert "Bug 1998255 - P2: Have GetTextEquivFromIDRefs return true if it used hidden content or referenced itself. r=morgan"

This reverts commit 99158f058d.

Revert "Bug 1998255 - P1: Intro and use ArrayAccIterator. r=morgan"

This reverts commit 5d3dbed390.

Revert "Bug 1998242 - P5: Perform subtree name calculation in RemoteAccessible::Name. r=morgan"

This reverts commit 68053ff36f.

Revert "Bug 1998242 - P4: Break up name calculation to allow remote subtree calc. r=morgan"

This reverts commit 0d01bdd7e0.

Revert "Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan"

This reverts commit 9ee273d6c6.

Revert "Bug 1998242 - P2: Don't rely on NativeName override to suppress subtree name calc. r=morgan"

This reverts commit 55dc166a46.

Revert "Bug 1998242 - P1: Factor out tooltip calculation. r=morgan"

This reverts commit 602b768450.
2025-11-20 06:39:20 +00:00
Eitan Isaacson a66669765f Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan
In the case of a file input, never return eNameFromRelations in order to
force a cache of the name.

Depends on D272726

Differential Revision: https://phabricator.services.mozilla.com/D272727
2025-11-20 03:55:52 +00:00
Eitan Isaacson 9ee273d6c6 Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan
Mark Name() as final in LocalAccessible and RemoteAccessible, and rely
on DirectName for overriding name calculation in local accessibles.

Depends on D271310

Differential Revision: https://phabricator.services.mozilla.com/D271311
2025-11-20 03:55:38 +00:00
Alexandru Marc 284c082177 Revert (Bug 1998242, Bug 1998255) for causing build bustages @ nsTextEquivUtils.cpp
This reverts commit 7c76213cf0.

Revert "Bug 1998255 - P4: Calculate labeled names remotely. r=morgan"

This reverts commit ebe32a1bcc.

Revert "Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan"

This reverts commit f4a05b1359.

Revert "Bug 1998255 - P2: Have GetTextEquivFromIDRefs return true if it used hidden content or referenced itself. r=morgan"

This reverts commit bbd365ae27.

Revert "Bug 1998255 - P1: Intro and use ArrayAccIterator. r=morgan"

This reverts commit 4cf9fc73f1.

Revert "Bug 1998242 - P5: Perform subtree name calculation in RemoteAccessible::Name. r=morgan"

This reverts commit 5a3dff09a7.

Revert "Bug 1998242 - P4: Break up name calculation to allow remote subtree calc. r=morgan"

This reverts commit 69925bd2e6.

Revert "Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan"

This reverts commit a0cf5d9cd6.

Revert "Bug 1998242 - P2: Don't rely on NativeName override to suppress subtree name calc. r=morgan"

This reverts commit a4155e38e4.

Revert "Bug 1998242 - P1: Factor out tooltip calculation. r=morgan"

This reverts commit 8c278d8b8f.
2025-11-20 00:22:53 +00:00
Eitan Isaacson f4a05b1359 Bug 1998255 - P3: Return eNameFromRelations when name was exclusively calculated from relations. r=morgan
In the case of a file input, never return eNameFromRelations in order to
force a cache of the name.

Depends on D272726

Differential Revision: https://phabricator.services.mozilla.com/D272727
2025-11-19 23:47:52 +00:00
Eitan Isaacson a0cf5d9cd6 Bug 1998242 - P3: Introduce DirectName() to be used by Name(). r=morgan
Mark Name() as final in LocalAccessible and RemoteAccessible, and rely
on DirectName for overriding name calculation in local accessibles.

Depends on D271310

Differential Revision: https://phabricator.services.mozilla.com/D271311
2025-11-19 23:47:37 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Masayuki Nakano f8236195a0 Bug 769207 - part 3: Make nsIMutationObserver use AttrModType r=smaug,dom-core,firefox-style-system-reviewers,layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D263054
2025-09-08 00:27:40 +00:00
Eitan Isaacson d263fd4451 Bug 1970234 - Add new eNameFromRelations name flag. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D252414
2025-06-09 18:04:37 +00:00
Atila Butkovits 98e0256221 Revert "Bug 1970235 - Don't show AXTitleUIElement in some conditions. r=morgan" for causing failures at browser_label_title.js.
This reverts commit 48db718d40.

Revert "Bug 1781153 - Simplify use of AXTitle/AXDescription. r=morgan"

This reverts commit 14eb8560c7.

Revert "Bug 1970234 - Add new eNameFromRelations name flag. r=morgan"

This reverts commit 799312555c.
2025-06-07 04:06:12 +00:00
Eitan Isaacson 799312555c Bug 1970234 - Add new eNameFromRelations name flag. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D252414
2025-06-07 02:12:16 +00:00
Eitan Isaacson 9a3c790144 Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie
Calculate COLLAPSED as a presence of EXPANDABLE with an absence of
EXPANDED. Also, tried to remove direct uses of COLLAPSED whereever
reasonable.

Note: We will still fire COLLAPSED state changes, so that's good.

Differential Revision: https://phabricator.services.mozilla.com/D251745
2025-06-04 00:38:36 +00:00
Serban Stanca 4912ee4a82 Revert "Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie" for causing mochitests failures in browser_simplePatterns.js.
This reverts commit 7ebea67d9a.

This reverts commit b6ffead8a7.

This reverts commit 940e0c0106.

This reverts commit e0180ff1ef.
2025-06-03 03:33:20 +00:00
Eitan Isaacson 7ebea67d9a Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie
Calculate COLLAPSED as a presence of EXPANDABLE with an absence of
EXPANDED. Also, tried to remove direct uses of COLLAPSED whereever
reasonable.

Note: We will still fire COLLAPSED state changes, so that's good.

Differential Revision: https://phabricator.services.mozilla.com/D251745
2025-06-03 00:50:23 +00:00
Alexandru Marc 2c2538b261 Revert "Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie" for causing ba failures @ browser_simplePatterns.js
This reverts commit 779b2feecd.

Revert "Bug 1899960 - P2: Imply an unavailable state if focusable is in unavailable subtree. r=Jamie"

This reverts commit 6e4b35e663.

Revert "Bug 1899960 - P1: Don't cache implicit states. r=Jamie"

This reverts commit eacb22ed13.

Revert "Bug 1967813 - Check menu's frame IsOpen to determine if menu is active. r=ayeddi"

This reverts commit f1f8ac785d.
2025-05-30 20:56:51 +00:00
Alexandru Marc 3b440c8738 Reapply "Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie" for causing ba failures at browser_simplePatterns.js for causing build bustage
This reverts commit fa47313db2.
2025-05-30 20:56:48 +00:00
Cristina Horotan fa47313db2 Revert "Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie" for causing ba failures at browser_simplePatterns.js for causing build bustage
This reverts commit 779b2feecd.

Revert "Bug 1899960 - P2: Imply an unavailable state if focusable is in unavailable subtree. r=Jamie"

This reverts commit 6e4b35e663.

Revert "Bug 1899960 - P1: Don't cache implicit states. r=Jamie"

This reverts commit eacb22ed13.

Revert "Bug 1967813 - Check menu's frame IsOpen to determine if menu is active. r=ayeddi"

This reverts commit f1f8ac785d.

Revert "Bug 1934096 - Minimize differences between `site.py` and `python.py` implementations of `pip_command` functions r=ahal"

This reverts commit e5ef1c9835.

Revert "Bug 1934096 - Use `uv` in `mozharness/base/python.py` r=ahal"

This reverts commit 48b3d309b5.

Revert "Bug 1968593 - Upgrade `uv` toolchain version to `0.7.2` r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 8b828d5f58.

Revert "Bug 1968592 - Fix `test_site_activation.py` test in CI after `uv` enable r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 8cfd9ee70b.

Revert "Bug 1968592: Enable `use-uv` by default for `test` and `source-test` kinds r=ahal,taskgraph-reviewers"

This reverts commit 994220ef5d.

Revert "Bug 1962485 - Fix `jj` tests in `mozversioncontrol` r=sfink,ahal"

This reverts commit 52e5f009bd.

Revert "Bug 1962485 - Add `jj` toolchain to `mozversioncontrol` Python source test r=firefox-build-system-reviewers,nalexander"

This reverts commit f0c553f479.

Revert "Bug 1962485 - Add `jj` toolchain tasks r=firefox-build-system-reviewers,nalexander"

This reverts commit 166ddbd3fe.

Revert "Bug 1967634 - Bump vendored `pyyaml` version to `6.0.2` to match mozharness and grizzly r=ahal,mach-reviewers"

This reverts commit 495e3e0a95.

Revert "Bug 1969203 - Fix `.gitignore` pattern regarding `.egg-info` for vendored packages in `jj` r=ahal"

This reverts commit b993509711.

Revert "Bug 1967634 - Apply fixes from `python-sites` lint r=ahal,mach-reviewers"

This reverts commit 5953da8cb8.

Revert "Bug 1967634 - Add `python-sites` lint to facilitate adding rules specific to `python/sites/` r=ahal"

This reverts commit 83917ff26d.

Revert "Bug 1965907 - Re-enable `test_vendor.py` r=ahal"

This reverts commit 6777024795.
2025-05-30 20:33:45 +00:00
Eitan Isaacson 779b2feecd Bug 1898654 - Make EXPANDABLE/EXPANDED/COLLAPSED states consistent. r=Jamie
Calculate COLLAPSED as a presence of EXPANDABLE with an absence of
EXPANDED. Also, tried to remove direct uses of COLLAPSED whereever
reasonable.

Note: We will still fire COLLAPSED state changes, so that's good.

Differential Revision: https://phabricator.services.mozilla.com/D251745
2025-05-30 17:41:24 +00:00
Tom Schuster b8d11d463f Bug 1951893 - Remove unneeded StaticAtom suffixes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D240598
2025-03-11 11:36:09 +00:00
James Teh 8533e75f97 Bug 1938624 part 3: Map <input type="search"> and role="searchbox" to the new SEARCHBOX Gecko role. r=eeejay
1. Return this role as appropriate in HTMLTextFieldAccessible and update ARIAMap.
2. Remove Accessible::IsSearchbox, which is no longer required.
3. Remove Mac mozTextAccessible moxSubrole override. This was only used for password inputs and searchboxes, but we can now specify these subroles in the RoleMap instead.
4. Tweak the iOS code for the removal of IsSearchbox.

Differential Revision: https://phabricator.services.mozilla.com/D233230
2025-02-03 01:47:43 +00:00