Commit Graph
177 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
Simon Farre 5107077c7d Bug 1463402: Implement Picture In Picture API r=dom-core,webidl,emilio,smaug,devtools-reviewers,ochameau
Implements the gecko-parts of Picture In Picture API, to which the various platforms can add their implementation for opening a PIP Window to.

nsIPictureInPictureFunctions.idl shall be implemented by the different platforms. For desktop we already have a "native" PIP implementation and this will be re-used.

Platforms which does not implement nsIPictureInPictureFunctions.idl, will signal that they don't support it (and attempts to request via the API algorithms, will reject accordingly).

Differential Revision: https://phabricator.services.mozilla.com/D286141
2026-05-29 10:10:44 +00:00
Serban Stanca 4f93cc4440 Revert "Bug 1463402: Flip pref for dom.media-pip.enabled r=dom-core,smaug,webidl" for causing Picture-in-Picture related wpt failures.
This reverts commit a958b57333.

This reverts commit 958e255d90.

This reverts commit 7df07e6a22.

This reverts commit 160de9227f.

This reverts commit dbf90cfe0d.

This reverts commit c9cd940b88.

This reverts commit 3842c6faa4.

This reverts commit 2e3ab76d53.

This reverts commit 2beb01dcef.
2026-05-29 02:57:03 +00:00
Simon Farre 3842c6faa4 Bug 1463402: Implement Picture In Picture API r=dom-core,webidl,emilio,smaug,devtools-reviewers,ochameau
Implements the gecko-parts of Picture In Picture API, to which the various platforms can add their implementation for opening a PIP Window to.

nsIPictureInPictureFunctions.idl shall be implemented by the different platforms. For desktop we already have a "native" PIP implementation and this will be re-used.

Platforms which does not implement nsIPictureInPictureFunctions.idl, will signal that they don't support it (and attempts to request via the API algorithms, will reject accordingly).

Differential Revision: https://phabricator.services.mozilla.com/D286141
2026-05-28 07:50:54 +00:00
iulian moraru ed06c06b94 Revert "Bug 1463402: Flip pref for dom.media-pip.enabled r=dom-core,smaug,webidl" for causing dt failures on browser_webconsole_object_inspector_entries.js.
This reverts commit d388c643aa.

Revert "Bug 1463402: Add WPT for unloading steps r=smaug"

This reverts commit 8f4e3752fd.

Revert "Bug 1463402: Add additional Shadow DOM tests r=smaug"

This reverts commit 3192646985.

Revert "Bug 1463402: Add WPT for exit-when-having-pip ordering is observed r=smaug"

This reverts commit 0801a3e700.

Revert "Bug 1463402: Add WPT for iframe PIP attribute testing r=dom-core,smaug"

This reverts commit 9c82850502.

Revert "Bug 1463402: Implement Desktop support for PIP API r=kpatenio,mconley"

This reverts commit d8d8edc96c.

Revert "Bug 1463402: Implement Picture In Picture API r=dom-core,webidl,emilio,smaug"

This reverts commit f5d05b6f48.

Revert "Bug 1463402: Implement pseudo class :picture-in-picture r=firefox-style-system-reviewers,emilio"

This reverts commit f28624cdaf.

Revert "Bug 1463402: Add pref for PIP API r=dom-core,smaug"

This reverts commit ddfd358304.
2026-05-27 14:54:42 +00:00
Simon Farre f5d05b6f48 Bug 1463402: Implement Picture In Picture API r=dom-core,webidl,emilio,smaug
Implements the gecko-parts of Picture In Picture API, to which the various platforms can add their implementation for opening a PIP Window to.

nsIPictureInPictureFunctions.idl shall be implemented by the different platforms. For desktop we already have a "native" PIP implementation and this will be re-used.

Platforms which does not implement nsIPictureInPictureFunctions.idl, will signal that they don't support it (and attempts to request via the API algorithms, will reject accordingly).

Differential Revision: https://phabricator.services.mozilla.com/D286141
2026-05-27 11:14:06 +00:00
Serban Stanca 9128793aef Revert "Bug 1463402: Flip pref for dom.media-pip.enabled r=dom-core,smaug,webidl" for causing multiple failures.
This reverts commit c59eb47e0f.

This reverts commit 21c5864802.

This reverts commit 23e4f81816.

This reverts commit 21b4ab6538.

This reverts commit c37750feba.

This reverts commit 317a79f02b.

This reverts commit 70a87cf3ed.

This reverts commit 81eed66bbb.

This reverts commit fdb187c0b7.
2026-05-26 14:06:00 +00:00
Simon Farre 70a87cf3ed Bug 1463402: Implement Picture In Picture API r=dom-core,webidl,emilio,smaug
Implements the gecko-parts of Picture In Picture API, to which the various platforms can add their implementation for opening a PIP Window to.

nsIPictureInPictureFunctions.idl shall be implemented by the different platforms. For desktop we already have a "native" PIP implementation and this will be re-used.

Platforms which does not implement nsIPictureInPictureFunctions.idl, will signal that they don't support it (and attempts to request via the API algorithms, will reject accordingly).

Differential Revision: https://phabricator.services.mozilla.com/D286141
2026-05-26 12:38:59 +00:00
Serban Stanca 1643f0215d Revert "Bug 1463402: Flip pref for dom.media-pip.enabled r=dom-core,smaug" for causing multiple failures.
This reverts commit 63b2bf96a3.

This reverts commit b3671a33e5.

This reverts commit f91c00df98.

This reverts commit 41603be05b.

This reverts commit 8a0c3b75e0.

This reverts commit 28caa069ef.

This reverts commit ae7d9fe07a.

This reverts commit f28faf6aec.

This reverts commit 21de73ae0d.
2026-05-26 10:10:18 +00:00
Simon Farre ae7d9fe07a Bug 1463402: Implement Picture In Picture API r=dom-core,webidl,emilio,smaug
Implements the gecko-parts of Picture In Picture API, to which the various platforms can add their implementation for opening a PIP Window to.

nsIPictureInPictureFunctions.idl shall be implemented by the different platforms. For desktop we already have a "native" PIP implementation and this will be re-used.

Platforms which does not implement nsIPictureInPictureFunctions.idl, will signal that they don't support it (and attempts to request via the API algorithms, will reject accordingly).

Differential Revision: https://phabricator.services.mozilla.com/D286141
2026-05-26 08:45:51 +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
Edgar Chen 12e1a55722 Bug 2038439 - Clean up stylesheets when destroying Document/ShadowRoot; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D299725
2026-05-12 22:58:26 +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
canalun 9f590b3a13 Bug 1935557 - Add a pseudoElement option to GetAnimationsOptions. r=webidl,smaug,emilio
Please note that the case of functional pseudo elements still fails, because functional pseudo elements are not supported for animations internally.

Differential Revision: https://phabricator.services.mozilla.com/D295117
2026-04-23 05:23:52 +00:00
agoloman f7ef583c3c Revert "Bug 2033474 - Add test for accessing adoptedStyleSheets after shadowRoot is unlinked; r=emilio" for causing crashtest failures @DocumentOrShadowRoot.cpp.
This reverts commit 572efd4be9.

Revert "Bug 2033474 - Clear adoptedStyleSheets properly while unlink; r=emilio"

This reverts commit 6a255bf24a.
2026-04-20 23:50:58 +00:00
Edgar Chen 6a255bf24a Bug 2033474 - Clear adoptedStyleSheets properly while unlink; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D295215
2026-04-20 22:25:03 +00:00
Sylvestre Ledru 9eb1a31a98 Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Norisz Fay a86d829321 Revert "Bug 2012637 - part 9: Add a Firefox Source Docs documentation page for TreeKind and notable issues r=smaug,dom-core" as requested by dev
This reverts commit 88008cd8ca.

Revert "Bug 2012637 - part 8: Make `nsContentUtils::ComparePoints` handle `TreeKind::Flat` and `TreeKind::FlatForSelection` correctly r=smaug,dom-core"

This reverts commit 73e6f6587b.

Revert "Bug 2012637 - part 7: Make `RangeUtils::CompareNodeToRangeBoundaries()` use `nsContentUtils::ComparePoints` with valid point in the tree r=smaug"

This reverts commit 6985d5e80f.

Revert "Bug 2012637 - part 6: Make `nsRange::CutContents()` convert the range boundaries to the ones in the DOM before comparing r=smaug"

This reverts commit 73b585af3d.

Revert "Bug 2012637 - part 5: Delete the default template parameter of `nsContentUtils::ComparePoints` and relatives r=smaug,dom-core"

This reverts commit 1a7f24e5b5.

Revert "Bug 2012637 - part 4: Make `nsContentUtils` use `nsIContent` for taking a child node as a parameter r=smaug"

This reverts commit a6ea8d6824.

Revert "Bug 2012637 - part 3: Add template `nsINode` API which can switch to call API from `TreeKind` r=smaug,dom-core,webidl"

This reverts commit a4211e9df0.

Revert "Bug 2012637 - part 2: Add `TreeKind::FlatForSelection` and change the template parameter of `ChildIteratorBase` to `TreeKind` r=smaug,dom-core"

This reverts commit 0241749ee7.

Revert "Bug 2012637 - part 1: Make `ChildIterBase` template class to re-implement `FlattenedChildIterator` for DOM, Flat and FlatForSelection TreeKind r=smaug,dom-core,layout-reviewers,emilio"

This reverts commit 9e71cb77fb.
2026-03-13 02:52:45 +00:00
Masayuki Nakano a4211e9df0 Bug 2012637 - part 3: Add template nsINode API which can switch to call API from TreeKind r=smaug,dom-core,webidl
This will make the main patch simpler. However, some of them do not
support `TreeKind::ShadowIncludingDOM` because it's unclear what
should return as a parent node of a child of `ShadowRoot`, what should
return as a child node of a shadow host. To avoid the developers to use
them on wrong assumptions, this patch makes the users use `DOM`, `Flat`
or `FlatForSelection` explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D281305
2026-03-12 03:01:50 +00:00
Keith Cirkel cddd51de64 Bug 2018900 - Implement customElementRegistry on Element DocumentOrShadowRoot r=dom-core,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D285678
2026-03-09 19:18:22 +00:00
Emilio Cobos Álvarez 7e7e0d5841 Bug 2017512 - Sanity check adopted stylesheet setters / deleters. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D284097
2026-02-26 10:53:52 +00:00
Alice Boxhall a4ba7f0009 Bug 1981349 - Add referenceTarget support for label/for, label wrapped and output/for. r=credential-management-reviewers,webidl,dimi,Jamie,smaug
This makes significant changes to RelatedAccIterator, nsLabelsNodeList and nsContentList:

- RelatedAccIterator is now able to walk up shadow roots where appropriate.
- HTMLLabelsIterator now eagerly constructs a TreeOrderedArray of related elements, walking up shadow roots while the shadow root's reference target is either mAcc's content or a host of one of its ancestor shadow roots.
- nsLabelsNodeList now has an array of roots as well as mRootNode in the superclass nsContentList. This list is reset under certain conditions, adding each shadow root found by walking up from the labeled element until one is found which doesn't have either the labeled element or the host of one of its ancestor shadow roots as a reference target. The last element in this list is set as mRootNode in the superclass, and is either the containing document, or the subtree root of either the labeled element or the host element whose containing shadow root doesn't have it as a reference target. Each root has a mutation observer added to ensure that the list is marked dirty when necessary, and also that roots are removed from `mRoots` when they are destroyed.
- In order to enable nsLabelsNodeList to be a mutation observer for each root, nsContentList now inherits from nsStubMultiMutationObserver instead of nsStubMutationObserver.

This change also moves the ReferenceTargetChangeObserver-related methods from DocumentOrShadowRoot on to Element, and the related data structures on to nsExtendedDOMSlots.

It also introduces a distinction between GetControlForBindings, which returns an element in the same scope as the label element it's called on, and GetLabeledElementInternal, which returns the element which actually has the label element as its label.

Differential Revision: https://phabricator.services.mozilla.com/D261368
2026-01-15 13:40:05 +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
Alice Boxhall d46abe6d76 Bug 1981349 - Add referenceTarget support for label/for, label wrapped and output/for. r=credential-management-reviewers,webidl,dimi,Jamie,smaug
This makes significant changes to RelatedAccIterator, nsLabelsNodeList and nsContentList:

- RelatedAccIterator now eagerly constructs a TreeOrderedArray of related elements, walking up shadow roots from mDependentContent while the shadow root's reference target is either mDependentContent or a host of one of its ancestor shadow roots.
- nsLabelsNodeList now has an array of roots as well as mRootNode in the superclass nsContentList. This list is reset under certain conditions, adding each shadow root found by walking up from the labeled element until one is found which doesn't have either the labeled element or the host of one of its ancestor shadow roots as a reference target. The last element in this list is set as mRootNode in the superclass, and is either the containing document, or the subtree root of either the labeled element or the host element whose containing shadow root doesn't have it as a reference target. Each root has a mutation observer added to ensure that the list is marked dirty when necessary, and also that roots are removed from `mRoots` when they are destroyed.
- In order to enable nsLabelsNodeList to be a mutation observer for each root, nsContentList now inherits from nsStubMultiMutationObserver instead of nsStubMutationObserver.

This change also moves the ReferenceTargetChangeObserver-related methods from DocumentOrShadowRoot on to Element, and the related data structures on to nsExtendedDOMSlots.

It also introduces a distinction between GetControlForBindings, which returns an element in the same scope as the label element it's called on, and GetLabeledElementInternal, which returns the element which actually has the label element as its label.

Differential Revision: https://phabricator.services.mozilla.com/D261368
2026-01-06 16:16:29 +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
Alice Boxhall 1b5cf4cdf8 Bug 1981349 - Add referenceTarget support for label/for, label wrapped and output/for. r=credential-management-reviewers,webidl,dimi,Jamie,smaug
This makes significant changes to RelatedAccIterator, nsLabelsNodeList and nsContentList:

- RelatedAccIterator now eagerly constructs a TreeOrderedArray of related elements, walking up shadow roots from mDependentContent while the shadow root's reference target is either mDependentContent or a host of one of its ancestor shadow roots.
- nsLabelsNodeList now has an array of roots as well as mRootNode in the superclass nsContentList. This list is reset under certain conditions, adding each shadow root found by walking up from the labeled element until one is found which doesn't have either the labeled element or the host of one of its ancestor shadow roots as a reference target. The last element in this list is set as mRootNode in the superclass, and is either the containing document, or the subtree root of either the labeled element or the host element whose containing shadow root doesn't have it as a reference target. Each root has a mutation observer added to ensure that the list is marked dirty when necessary, and also that roots are removed from `mRoots` when they are destroyed.
- In order to enable nsLabelsNodeList to be a mutation observer for each root, nsContentList now inherits from nsStubMultiMutationObserver instead of nsStubMutationObserver.

This change also moves the ReferenceTargetChangeObserver-related methods from DocumentOrShadowRoot on to Element, and the related data structures on to nsExtendedDOMSlots.

It also introduces a distinction between GetControlForBindings, which returns an element in the same scope as the label element it's called on, and GetLabeledElementInternal, which returns the element which actually has the label element as its label.

Differential Revision: https://phabricator.services.mozilla.com/D261368
2025-12-24 13:41:57 +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
Emilio Cobos Álvarez 791917d8af Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
Emilio Cobos Álvarez e94e1dd416 Bug 1960473 - Update content relevancy only once per tick. r=fredw
Otherwise we can end up with dirty frames at the end of a flush. This
doesn't fix bug 1958522 (I think we need either height: fit-content to
work, or IntersectionObserver.scrollMargin). But matches the HTML spec:

> The intent of this step is for the initial viewport proximity
> determination, which takes effect immediately, to be reflected in the
> style and layout calculation which is carried out in a previous step of
> this loop. Proximity determinations other than the initial one take
> effect at the next rendering opportunity.

Differential Revision: https://phabricator.services.mozilla.com/D245489
2025-04-21 11:08:27 +00:00
Emilio Cobos Álvarez 9a889c83ab Bug 1957689 - Use atoms a bit more in IDTracker. r=smaug
Just drive-by clean-ups.

Differential Revision: https://phabricator.services.mozilla.com/D244185
2025-04-02 18:10:31 +00:00
Emilio Cobos Álvarez df3801a5f9 Bug 1954552 - Support passing a NodeIndexCache to CompareTreePosition. r=smaug
And use it in a couple places where it makes sense.

Differential Revision: https://phabricator.services.mozilla.com/D241964
2025-03-19 20:54:08 +00:00
Emilio Cobos Álvarez 3342e9e7eb Bug 1950261 - Do deal with Link header sheets.
MANUAL PUSH: orange fix CLOSED TREE
2025-02-25 19:05:59 +01:00
Emilio Cobos Álvarez bacd53074e Bug 1950261 - Binary search to get DOM sheet insertion point. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D239506
2025-02-25 14:15:58 +00:00
Emilio Cobos ÁlvarezandTimothy Nikkel 507f709941 Bug 1931789 - Avoid quadratic behaviour of FindDocStyleSheetInsertionPoint in the common append case. r=smaug
This is about 0.75% of the full sp3 suite.

Co-authored-by: Timothy Nikkel <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D229283
2025-02-22 16:23:12 +00:00
Timothy Nikkel b91c21bf5e Bug 1931789. Change DocumentOrShadowRoot::StyleOrderIndexOfSheet to return size_t. r=emilio
size_t is the return type of nsTArray::IndexOf. NoIndex is defined as (size_t)-1. Implicitly converting this to int32_t which is signed and might be a different bit width seems sketchy to me. This makes this clear and explicit.

Differential Revision: https://phabricator.services.mozilla.com/D229282
2025-02-22 16:23:12 +00:00
keithamus 13164cec77 Bug 1944244 - Flag the restriction on adoptedStyleSheets constructed styles r=emilio
This flag allows us to experiment with lifting the restriction on constructed stylesheets.

Differential Revision: https://phabricator.services.mozilla.com/D235749
2025-01-30 11:58:28 +00:00
David Parks bf4f8f603b Bug 1919554: Allow ElementsFromPointHelper to return elements in shadow DOM r=smaug,dlp-reviewers,gstoll
Don't PerformRetargeting in ElementsFromPointHelper when doing DND
hit test for content analysis.

The added test fails for the same reason that
browser_dragdrop_shadow.js (added in this patch series) does, so it is
currently blocked from running (bug 1932955).

Differential Revision: https://phabricator.services.mozilla.com/D229984
2025-01-08 19:38:56 +00:00
Adam Vandolder a1cf2d6b5d Bug 1685926 - Group disconnected radio buttons together. r=saschanaz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D162349
2023-09-28 15:47:11 +00:00
Natalia Csoregi 51f7d1bb14 Backed out changeset 8f8492410799 (bug 1685926) for causing bustage on SVGAnimatedPathSegList.cpp. CLOSED TREE 2023-09-28 10:40:31 +03:00
Adam Vandolder aee8834b7a Bug 1685926 - Group disconnected radio buttons together. r=saschanaz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D162349
2023-09-28 06:35:44 +00:00
Cristian Tuns f84b646496 Backed out changeset 37ade77d181e (bug 1685926) for causing build bustages in PerformanceEventTiming.cpp CLOSED TREE 2023-09-25 12:40:22 -04:00
Adam Vandolder 305c6a88bf Bug 1685926 - Group disconnected radio buttons together. r=saschanaz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D162349
2023-09-25 14:39:08 +00:00
Nicolas Chevobbe 3c3448aad6 Bug 1771113 - Add chromeOnly StyleSheetRemoved event, emitted when a stylesheet is removed. r=emilio.
This new event will be consumed by DevTools to update style information.

As for `StyleSheetApplicableStateChanged`, this event is emitted from the document.
It's only enabled when `document.styleSheetChangeEventsEnabled` is set to true.

The existing test around the `StyleSheetApplicableStateChanged` is renamed and
modified to assert both events when stylesheets are added, modified and removed.

Differential Revision: https://phabricator.services.mozilla.com/D147271
2023-08-10 14:36:03 +00:00
Emilio Cobos Álvarez 78db2ee9f0 Bug 1827516 - Fix retargeting of UAWidget.elementFromPoint(). r=smaug
The continue in GetContentInThisDocument meant that if we call that in a
UA widget we'd return null...

This breaks the following check:

  https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/toolkit/content/widgets/videocontrols.js#1373-1381

Which was introduced in bug 1513600 to fix precisely this bug...

Depends on D175714

Differential Revision: https://phabricator.services.mozilla.com/D175715
2023-04-18 09:23:06 +00:00
Alexander Surkov 50bc93b884 Bug 1823757 - use parsed atoms for popovertarget attribute, r=emilio
Use parsed atoms to store popovertarget attributes as more effective mechanism to search for ID match in attr associated elements implementation. Followup from D173337.

Differential Revision: https://phabricator.services.mozilla.com/D174786
2023-04-11 18:35:51 +00:00
Natalia Csoregi 64f264b62e Backed out changeset 96da9dcee2b0 (bug 1823757) for causing failures on popover-invoking-attribute.html. CLOSED TREE 2023-04-11 09:43:08 +03:00
Alexander Surkov be39f08c40 Bug 1823757 - use parsed atoms for popovertarget attribute, r=emilio
Use parsed atoms to store popovertarget attributes as more effective mechanism to search for ID match in attr associated elements implementation. Followup from D173337.

Differential Revision: https://phabricator.services.mozilla.com/D174786
2023-04-11 00:53:28 +00:00