Commit Graph
51 Commits
Author SHA1 Message Date
Eitan Isaacson 9ea0ddea86 Bug 1895551 - Remove aria attribute from ElementInternals when set to null. r=Jamie,dom-core,edgar
Differential Revision: https://phabricator.services.mozilla.com/D209721
2024-05-24 22:37:12 +00:00
Eitan Isaacson 55275793f7 Bug 1883996 - P2: Add ariaActiveDescendantElement to ARIAMixin and implement. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D203850
2024-03-12 20:32:16 +00:00
keithamus 2c3b3f4d43 Bug 1861466 - Add CustomStateSet and :state() pseudo. r=emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D191988
2023-11-08 13:38:02 +00:00
Otto Länd 126c82f7ba Bug 1850238, 1850293: apply code formatting via Lando
# ignore-this-changeset
2023-08-30 09:26:04 +00:00
Emilio Cobos Álvarez 72f00fc947 Bug 1850293 - Make validity states non-intrinsic. r=smaug
Add a RAII helper to notify of multiple state changes together for
these.

The UpdateState CustomElementInternals calls that are getting removed
are unnecessary (the state should be up-to-date by then, there's nothing
changing there particularly).

Same for the call in nsGenericHTMLFormElement::UnbindFromTree. ClearForm
already does an state update.

Differential Revision: https://phabricator.services.mozilla.com/D187033
2023-08-30 09:18:32 +00:00
Emilio Cobos Álvarez 3e9e56e2c8 Bug 1850293 - Make editable states not intrinsic. r=smaug,masayuki
This one is tricky because form controls, though I think I got it right...

This fixes a pre-existing bug where we're not following the spec for readonly
inside content-editable.

I filed this as bug 1850390 but other browsers match the spec so add a test and
fix it while at it. This allows cheaper checks for readonlyness in a couple
places.

Differential Revision: https://phabricator.services.mozilla.com/D186896
2023-08-30 09:18:31 +00:00
avandolder f102e83b63 Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-28 04:31:22 +00:00
Emilio Cobos Álvarez 529c9ee321 Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar
We have more readable and faster versions (that just omit the namespace
arg).

Mostly done via sed, with a couple helpers to use the faster lookups
where possible.

Differential Revision: https://phabricator.services.mozilla.com/D181795
2023-06-23 10:01:32 +00:00
Iulian Moraru 946fa366f4 Backed out changeset 9fb58fa7b8b6 (bug 1556358) for causing wpt failures on ElementInternals-setFormValue.html. CLOSED TREE 2023-06-20 08:16:50 +03:00
avandolder ebc03e8550 Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-20 01:29:58 +00:00
Natalia Csoregi 0b693ec882 Backed out changeset 08f12e7fa5f0 (bug 1556358) for causing bustage on ElementInternals.cpp. CLOSED TREE 2023-06-19 21:15:17 +03:00
avandolder 23dce8037c Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-19 17:22:01 +00:00
Norisz Fay 496c99b742 Backed out changeset 1680323680fe (bug 1556358) for causing Bb bustages on ElementInternals.cpp CLOSED TREE 2023-06-19 18:33:35 +03:00
Adam Vandolder c1d69f579f Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Depends on D175542

Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-19 13:44:15 +00:00
Stanca Serban 3b192df9e2 Backed out 3 changesets (bug 1556358) for causing Bb build bustages in ElementInternals.cpp. CLOSED TREE
Backed out changeset f7e94ea82252 (bug 1556358)
Backed out changeset c80f29a9cefc (bug 1556358)
Backed out changeset 413225d91666 (bug 1556358)
2023-06-16 19:46:02 +03:00
Adam Vandolder de0a2c439f Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Depends on D175542

Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-16 15:02:11 +00:00
Noemi Erli 4d4d467468 Backed out 3 changesets (bug 1556358) for causing bustages in ElementInternals.cpp CLOSED TREE
Backed out changeset 0ebda393786b (bug 1556358)
Backed out changeset c41794eef66a (bug 1556358)
Backed out changeset a07e3e226569 (bug 1556358)
2023-06-15 01:32:38 +03:00
Adam Vandolder 138ee92ee6 Bug 1556358 - Part 2: Save and restore custom element form data. r=edgar
Depends on D175542

Differential Revision: https://phabricator.services.mozilla.com/D174115
2023-06-14 20:59:29 +00:00
Edgar Chen 91906a06c6 Bug 1827019 - Add diagnostic assertion to ensure mForm is reset after unlink; r=smaug
Depends on D176356

Differential Revision: https://phabricator.services.mozilla.com/D176357
2023-04-27 21:48:43 +00:00
Edgar Chen bce9491bb2 Bug 1827019 - Reset mFieldset after unlink; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D176356
2023-04-27 21:48:43 +00:00
Adam Vandolder 88882be017 Bug 1665151 - Part 2: Expose custom element default accessibility attributes. r=edgar,Jamie,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D159237
2022-11-02 14:50:56 +00:00
Adam Vandolder be1c52aedc Bug 1665151 - Part 1: Add Aria reflection attributes to ElementInternals. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156178
2022-09-08 19:02:23 +00:00
Olli Pettay 048bd344c4 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Edgar Chen a9a8b0bb03 Bug 1757923 - Make ElementInternals keeping the target element alive; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D140310
2022-03-11 13:29:02 +00:00
Edgar Chen 2d5e0fe078 Bug 1556370 - Part 2: Implement reportValidity() of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130287
2021-12-09 18:06:04 +00:00
Edgar Chen 9ce9f4bfe8 Bug 1556370 - Part 1: Support validation anchor for form-associated custom elements; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133288
2021-12-09 18:06:03 +00:00
Edgar Chen 76e0add792 Bug 1556367 - Part 3: Implement checkValidity() of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130129
2021-12-03 15:47:34 +00:00
Edgar Chen 8b06a20e7a Bug 1556364 - Part 4: Support updating valid/invalid state on form-associated custom elements; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130128
2021-11-26 11:47:40 +00:00
Edgar Chen 1b82a1e74c Bug 1556364 - Part 3: Implement setValidity() of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129821
2021-11-26 11:47:40 +00:00
Edgar Chen 82e4faeae7 Bug 1556364 - Part 2-2: Implement validationMessage attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129811
2021-11-26 11:47:39 +00:00
Edgar Chen 6ff9b7f915 Bug 1556364 - Part 1: Implement validity attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129810
2021-11-26 11:47:39 +00:00
Marian-Vasile Laza 1e7f538843 Backed out 5 changesets (bug 1556364) for causing web-platform test failures. CLOSED TREE
Backed out changeset dabffbe71a31 (bug 1556364)
Backed out changeset 76fc30f27c39 (bug 1556364)
Backed out changeset f6f7f949551f (bug 1556364)
Backed out changeset c77ef41d43d4 (bug 1556364)
Backed out changeset 2c8c74e99e47 (bug 1556364)
2021-11-26 05:01:08 +02:00
Edgar Chen 249c649569 Bug 1556364 - Part 4: Support updating valid/invalid state on form-associated custom elements; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D130128
2021-11-25 21:58:05 +00:00
Edgar Chen 0280fa7876 Bug 1556364 - Part 3: Implement setValidity() of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129821
2021-11-25 21:58:05 +00:00
Edgar Chen dec5dcf50c Bug 1556364 - Part 2-2: Implement validationMessage attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129811
2021-11-25 21:58:04 +00:00
Edgar Chen 4d42c6d695 Bug 1556364 - Part 1: Implement validity attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129810
2021-11-25 21:58:03 +00:00
Edgar Chen ee1ad7ce63 Bug 1556365 - Implement willValidate attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129329
2021-11-04 09:49:32 +00:00
Edgar Chen 65932a4f15 Bug 1556354 - Part 5: Implement formResetCallback; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129203
2021-10-25 14:28:05 +00:00
Edgar Chen 50282145ed Bug 1556449 - Implement setFormValue() of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127974
2021-10-21 18:02:52 +00:00
Edgar Chen 3187d7fc79 Bug 1556373 - Implement labels attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126130
2021-10-06 21:40:51 +00:00
Edgar Chen 4700ca6123 Bug 1556362 - Implement form attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125900
2021-10-06 20:24:52 +00:00
Cristian Tuns a40d7a92d1 Backed out changeset 55ab13abb8c2 (bug 1556362) for causing wpt failures on ElementInternals. CLOSED TREE 2021-10-06 11:14:57 -04:00
Edgar Chen c93b4c663d Bug 1556362 - Implement form attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125900
2021-10-06 13:51:40 +00:00
Edgar Chen b7f93a5d5c Bug 1556351 - Part 9: Implement FACE upgrade; r=smaug
ElementInternal implements nsIFormControl and QueryInterface HTMLElement to a
nsIFormControl would return its associated ElementInternal instead.

Differential Revision: https://phabricator.services.mozilla.com/D125211
2021-10-04 20:51:28 +00:00
Edgar Chen 9b5ddbe41f Bug 1723521 - Part 3: Implement and ship ElementInternals.shadowRoot; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D121566
2021-08-10 15:15:37 +00:00
Sylvestre Ledru 68b806d604 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila a6e7dcc53f Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE 2020-11-04 10:54:36 +02:00
Sylvestre Ledru 8f709b39e8 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
John Dai d1587a1387 Bug 1552313 - Implement element.attachInternals; r=smaug,edgar
ElementInternals class is empty-for-now.

Differential Revision: https://phabricator.services.mozilla.com/D52158
2019-11-12 11:27:55 +00:00
Dorel Luca d437fccc6c Backed out 3 changesets (bug 1552313) for WPT failures in custom-elements/CustomElementRegistry.html. CLOSED TREE
Backed out changeset 27a01989152a (bug 1552313)
Backed out changeset 5f8c6c9f2d36 (bug 1552313)
Backed out changeset f26d61e06a9d (bug 1552313)
2019-11-11 20:55:58 +02:00