Commit Graph
1295 Commits
Author SHA1 Message Date
Keith Cirkel 03f4244d59 Bug 2018902 - Part 2: Add CustomElementRegistry option to ShadowRoot init r=dom-core-reviewers,webidl,smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D287096
2026-06-11 07:12:47 +00:00
Tiaan Louw aa4033b3f8 Bug 1974792 - Implement ::checkmark pseudo selector for customizable select r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,emilio,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D295550
2026-06-02 09:40:28 +00:00
Henri Sivonen 0124daca51 Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302278
2026-06-02 09:12:41 +00:00
Henri Sivonen d13776d321 Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-02 09:12:39 +00:00
Alexandru Marc 16e384440d Revert "Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug" for causing build bustages @ Element.cpp
This reverts commit 82b2e13b45.

Revert "Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug"

This reverts commit 2d1ee1cd69.
2026-06-02 07:41:40 +00:00
Henri Sivonen 82b2e13b45 Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302278
2026-06-02 07:07:28 +00:00
Henri Sivonen 2d1ee1cd69 Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-02 07:07:26 +00:00
Atila Butkovits b2571923b9 Revert "Bug 1974792 - Implement ::checkmark pseudo selector for customizable select r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,emilio,nchevobbe" for causing failures at browser_parsable_css.js.
This reverts commit 3e903c86a3.
2026-06-02 01:46:29 +00:00
Atila Butkovits d68e85e91d Revert "Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug" for causing bustages at Element.cpp.
This reverts commit 9dd3f6b595.

Revert "Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug"

This reverts commit b1774ce65e.
2026-06-01 21:47:14 +00:00
Tiaan Louw 3e903c86a3 Bug 1974792 - Implement ::checkmark pseudo selector for customizable select r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,emilio,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D295550
2026-06-01 20:56:54 +00:00
Henri Sivonen 9dd3f6b595 Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302278
2026-06-01 20:50:19 +00:00
Henri Sivonen b1774ce65e Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-01 20:50:16 +00:00
rperta 32326b72c7 Revert "Bug 1974792 - Implement ::checkmark pseudo selector for customizable select r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,emilio,nchevobbe" for causing mass failures
This reverts commit 498b28b9e5.
2026-06-01 16:14:26 +00:00
Tiaan Louw 498b28b9e5 Bug 1974792 - Implement ::checkmark pseudo selector for customizable select r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,emilio,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D295550
2026-06-01 15:22:26 +00:00
Serban Stanca 94f4c69168 Revert "Bug 2018902 - Part 2: Add CustomElementRegistry option to ShadowRoot init r=dom-core,webidl,smaug,edgar" for causing build bustages in nsGenericHTMLElement.h.
This reverts commit 5d94012a7d.
2026-05-21 11:00:30 +00:00
Keith Cirkel 5d94012a7d Bug 2018902 - Part 2: Add CustomElementRegistry option to ShadowRoot init r=dom-core,webidl,smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D287096
2026-05-21 10:24:12 +00:00
Keith Cirkel 0c5749c30d Bug 2029974 - Implement new stacking logic for popover=hint r=dom-core,farre,smaug
Differential Revision: https://phabricator.services.mozilla.com/D292397
2026-05-20 16:14:48 +00:00
Atila Butkovits 03cacc0e27 Revert "Bug 2029974 - Implement new stacking logic for popover=hint r=dom-core,farre,smaug" for causing leaks complaining about BaseProfilerMarkersPrerequisites.h.
This reverts commit f74dd68fbe.
2026-05-20 10:56:22 +00:00
Keith Cirkel f74dd68fbe Bug 2029974 - Implement new stacking logic for popover=hint r=dom-core,farre,smaug
Differential Revision: https://phabricator.services.mozilla.com/D292397
2026-05-20 09:03:45 +00:00
Emilio Cobos Álvarez f81f1103c1 Bug 2039719 - Avoid attribute reparsing in common cases when cloning. r=dom-core,smaug
In particular, this helps when cloning elements out of a <template>
element, because that hits the cross-document codepath.

We keep unconditionally reparsing for SVGElement because the set-up
there is totally busted.

Not touching ReparseStyleAttribute() for now (though we should look into
it).

Differential Revision: https://phabricator.services.mozilla.com/D300644
2026-05-15 19:19:21 +00:00
Olli Pettay b43a29ace9 Bug 2039696 - avoid calling nsNameSpaceManager::GetInstance()->GetNameSpaceURI in Element::SetAttrAndNotify when namespace is the default one, and avoid calling IsInObservedAttributeList second time, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D300638
2026-05-15 03:02:04 +00:00
Emilio Cobos Álvarez e4ecfea530 Bug 2038976 - Make CSSOM work on raw declaration blocks, rather than DeclarationBlock. r=firefox-style-system-reviewers,layout-reviewers,dshin
This will make being more granular with cloning easier, and we don't
need it after the previous patch.

This leaves DeclarationBlock only for the style attribute for now, we
need it for the AttrStyles stuff. But I plan to move that to
MiscContainer instead or so.

Differential Revision: https://phabricator.services.mozilla.com/D300052
2026-05-13 22:29:25 +00:00
Edgar Chen 4e1b9abf64 Bug 2038919 - Add UseCounter for point lock with unadjustedMovemet; r=webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D300005
2026-05-12 22:57:49 +00:00
Hiroyuki Ikezoe d1ee4bd4a8 Bug 2031468 - Disable ::-webkit-scrollbar on a per-domain blocklist. r=firefox-style-system-reviewers,layout-reviewers,emilio
Some sites probe `@supports selector(::-webkit-scrollbar)` to detect
WebKit/Blink and then ship styles that depend on real WebKit scrollbar
behavior, which our partial `::-webkit-scrollbar` support does not match.
Give us a way to disable the pseudo-element on specific domains while
keeping it enabled everywhere else; on listed domains the pseudo is
treated as unknown by the selector parser, so `@supports selector(...)`
also reports it as unsupported.

Differential Revision: https://phabricator.services.mozilla.com/D299295
2026-05-11 09:15:25 +00:00
Serban Stanca 06e30b558f Revert "Bug 2031468 - Disable ::-webkit-scrollbar on a per-domain blocklist. r=firefox-style-system-reviewers,layout-reviewers,emilio" for causing Android reftests failures.
This reverts commit 8a0a6843b1.
2026-05-11 07:48:05 +00:00
Hiroyuki Ikezoe 8a0a6843b1 Bug 2031468 - Disable ::-webkit-scrollbar on a per-domain blocklist. r=firefox-style-system-reviewers,layout-reviewers,emilio
Some sites probe `@supports selector(::-webkit-scrollbar)` to detect
WebKit/Blink and then ship styles that depend on real WebKit scrollbar
behavior, which our partial `::-webkit-scrollbar` support does not match.
Give us a way to disable the pseudo-element on specific domains while
keeping it enabled everywhere else; on listed domains the pseudo is
treated as unknown by the selector parser, so `@supports selector(...)`
also reports it as unsupported.

Differential Revision: https://phabricator.services.mozilla.com/D299295
2026-05-11 05:12:18 +00:00
Edgar Chen 90143df1b5 Bug 1829401 - Part 2: Support unadjustedMovement option and implement on macOS first; r=webidl,smaug,mstange
Co-authored-by: Edgar Chen <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D297193
2026-05-10 07:05:18 +00:00
Noah PetersonandEdgar Chen 97c84d2239 Bug 1829401 - Part 1: Implements Element.requestPointerLock() to return Promise<undefined>; r=smaug,webidl
Matching the spec at https://w3c.github.io/pointerlock/#requestPointerLock.

Co-authored-by: Edgar Chen <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D299009
2026-05-10 07:05:14 +00:00
Cosmin Sabou 53bb72f274 Revert "Bug 1829401 - Part 2: Support unadjustedMovement option and implement on macOS first; r=webidl,smaug,mstange" for causing failures on pointerlock-maintains-mousedown.html.
This reverts commit 782dcf9aee.

Revert "Bug 1829401 - Part 1: Implements Element.requestPointerLock() to return Promise<undefined>; r=smaug,webidl"

This reverts commit e4344e3d3c.
2026-05-08 21:17:50 +00:00
Edgar ChenandNoah Peterson 782dcf9aee Bug 1829401 - Part 2: Support unadjustedMovement option and implement on macOS first; r=webidl,smaug,mstange
Co-authored-by: Noah Peterson <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D297193
2026-05-07 23:39:54 +00:00
Noah PetersonandEdgar Chen e4344e3d3c Bug 1829401 - Part 1: Implements Element.requestPointerLock() to return Promise<undefined>; r=smaug,webidl
Matching the spec at https://w3c.github.io/pointerlock/#requestPointerLock.

Co-authored-by: Edgar Chen <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D299009
2026-05-07 23:39:50 +00:00
Leo Tenenbaum 32cc4d9e48 Bug 2035304 - Part 1: Connecting and disconnecting EditContexts. r=dom-core,layout-reviewers,emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D296827
2026-05-07 19:35:54 +00:00
Sandor Molnar 6c5d679e9d Revert "Bug 2035304 - Part 2: EditContext setters and getters. r=dom-core,smaug" for causing build bustages.
This reverts commit 2cd5592148.

Revert "Bug 2035304 - Part 1: Connecting and disconnecting EditContexts. r=dom-core,layout-reviewers,emilio,smaug"

This reverts commit ccb1f6bfb8.
2026-05-07 15:41:43 +00:00
Leo Tenenbaum ccb1f6bfb8 Bug 2035304 - Part 1: Connecting and disconnecting EditContexts. r=dom-core,layout-reviewers,emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D296827
2026-05-07 15:23:13 +00:00
Sandor Molnar e0906c4724 Revert "Bug 2035304 - Part 2: EditContext setters and getters. r=dom-core,smaug" for causing build bustages
This reverts commit ae69f6c9c6.

Revert "Bug 2035304 - Part 1: Connecting and disconnecting EditContexts. r=dom-core,layout-reviewers,emilio,smaug"

This reverts commit 7c0bd3f1e0.
2026-05-07 14:32:29 +00:00
Leo Tenenbaum 7c0bd3f1e0 Bug 2035304 - Part 1: Connecting and disconnecting EditContexts. r=dom-core,layout-reviewers,emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D296827
2026-05-07 13:55:17 +00:00
Hiroyuki Ikezoe e08601065e Bug 2037631 - Respect scroll-snap-align when scrolling to a fragment. r=layout-reviewers,webidl,emilio
Add "auto" to ScrollLogicalPosition per https://github.com/w3c/csswg-drafts/issues/9576.
Fragment navigation now passes WhereToScroll::Auto so that scroll-snap-align is
respected when present, falling back to the spec defaults (start for block,
nearest for inline) when absent. Explicit scrollIntoView() alignment values are
no longer overridden by snap alignment.

GetScrollSnapAlignFor previously returned None for all axes when the scroll
container had scroll-snap-type: none. Remove that early return so that fragment
navigation (which uses WhereToScroll::Auto) can still honor the target's
scroll-snap-align even on non-snapping containers, as the spec permits.

Differential Revision: https://phabricator.services.mozilla.com/D298959
2026-05-07 03:23:07 +00:00
Botond Ballo 2bc32eac13 Bug 2037316 - Add an option to Element::Describe to omit the class attribute as well. r=ajakobi
Use the new option for describing scroll snap targets.

Differential Revision: https://phabricator.services.mozilla.com/D298738
2026-05-07 00:34:55 +00:00
Alice Boxhall d9e4c01c28 Bug 2029571 - Ensure form association still works correctly when ID and form attr are equal. r=dom-core,smaug
The linked bug was being triggered because the ID and form attribute were the same, which caused a sequence of events such that the form association was not correctly set up:
- When the element with the form attribute is created, nsGenericHTMLElement::AfterSetAttr() calls into AddFormAttributeObserver(),
- which calls Element::AddAttrAssociatedElementObserver(),
- which initialises its mLastKnownAttrElement to the element with the identical form and ID attribute, as GetAttrAssociatedElementInternal() calls into GetElementByIdInDocOrSubtree()
- Then, when the element is bound to the document, UpdateFormOwner() calls into AddFormAttributeObserver() again,
- which calls into Element::AddAttrAssociatedElementObserver() again
- which returns the *old* value for mLastKnownAttrElement.

This change ensures that when the element is bound to a new tree, it checks for attr-associated element updates from the ID scope changing, and calls listeners if the attr-associated element has changed.
This causes FormAttributeUpdated to fire, ensuring the correct form is associated with the element.

Differential Revision: https://phabricator.services.mozilla.com/D293534
2026-05-05 18:20:03 +00:00
Sylvestre Ledru 741bbdea29 Bug 2036402 - Apply std::move in dom/base where values can be moved instead of copied r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D298095
2026-05-04 11:17:52 +00:00
Jonathan Watt 33eccd6d32 Bug 1676795. Fix Element::Animate() and Animation::Constructor to use ScrollTimeline. r=boris,webidl,smaug
- Adds the missing KeyframeAnimationOptions.timeline WebIDL
- Makes Element::Animate use KeyframeAnimationOptions.timeline when
  appropriate, passing it to Animation::Constructor

Differential Revision: https://phabricator.services.mozilla.com/D296787
2026-05-03 19:22:23 +00:00
Emilio Cobos Álvarez 1bd0da8bf7 Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-02 22:04:17 +00:00
iulian moraru 480fc572da Revert "Bug 2036439, Bug 2033243 - Deal with ownerGlobal -> documentGlobal rename in extensions. r=robwu,home-newtab-reviewers,mconley" for causing newtab failures.
This reverts commit 4f62279d01.

Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug"

This reverts commit 91a4ece356.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 5a95a889e1.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 7177a68e67.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 5263254690.
2026-05-02 16:43:35 +00:00
Emilio Cobos Álvarez 7177a68e67 Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-02 15:33:23 +00:00
rperta d4cc71008d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" on developer request
This reverts commit e58e122135.

This reverts commit 84ca206f3e.

This reverts commit a7945292ed.

This reverts commit 367d83d299.
2026-05-02 06:20:30 +00:00
Alexandru Marc bf38fb4f1a Revert "Bug 1676795. Fix Element::Animate() and Animation::Constructor to use ScrollTimeline. r=boris,webidl,smaug" for causing animate related wpt failures
This reverts commit 49c35a5211.
2026-05-02 00:31:38 +00:00
Jonathan Watt 49c35a5211 Bug 1676795. Fix Element::Animate() and Animation::Constructor to use ScrollTimeline. r=boris,webidl,smaug
- Adds the missing KeyframeAnimationOptions.timeline WebIDL
- Makes Element::Animate use KeyframeAnimationOptions.timeline when
  appropriate, passing it to Animation::Constructor

Differential Revision: https://phabricator.services.mozilla.com/D296787
2026-05-01 23:44:48 +00:00
Emilio Cobos Álvarez a7945292ed Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-01 11:58:14 +00:00
agoloman c814da612d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" for causing multiple failures.
This reverts commit c7246654bc.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 8873ddf33c.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 8bf999e03c.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 7dea1af2e0.
2026-04-30 20:13:14 +00:00
Emilio Cobos Álvarez 8bf999e03c Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-04-30 17:47:11 +00:00