Commit Graph

6 Commits

Author SHA1 Message Date
Nicholas 169c949e49 Add support for HTMLSlotElement.assignedElements() (#2)
* Bug 1425685 - Implement HTMLSlotElement.assignedElements() part 1

This updates dom/webidl/HTMLSlotElement.webidl

* Bug 1425685 - Implement HTMLSlotElement.assignedElements() part 2

This updates dom/html/HTMLSlotElement.h

* Bug 1425685 - Implement HTMLSlotElement.assignedElements() part 3

This updates dom/html/HTMLSlotElement.cpp
2025-10-04 21:28:45 -03:00
Moonchild 824d0cad58 Issue #2736 - Part 2: Pass subject principal to SetAttribute and friends.
In order to tailor certain security checks to the caller that is
attempting to load a particular piece of content, we need to be able to
attach an appropriate triggering principal to the corresponding requests.

Since most HTML content is loaded based on attribute values, this means
capturing the subject principal of the caller who sets those attributes,
which in turn means we need to make it available to `AfterSetAttr` hooks
on all relevant element types.
2025-05-14 14:22:13 +08:00
Moonchild 8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Matt A. Tobin af22b5cba5 Bug 1409976 - Add slotchange event
* Add support for `slotchange` event
* Signal `slotchange` when slot's assigned nodes changes

Tag #1375
2020-04-18 07:06:25 +08:00
Matt A. Tobin cab78760e5 Bug 1409975 - Implement node distribution for shadow tree slots
* Implementation for assignedNodes
* Include slots in the flat tree
* Fix event get-the-parent algorithm for a node
* Update and add reftests for Shadow DOM v1
* Update web platform tests expectations

Tag #1375
2020-04-18 07:05:39 +08:00
Matt A. Tobin 592c34bc79 Bug 1402941 - Add HTMLSlotElement
Tag #1375
2020-04-18 07:05:10 +08:00