Bug 1849674 - Remove dom.shadowdom.slot.assign.enabled pref r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D186675
This commit is contained in:
Gregory Pappas 2023-08-23 02:16:48 +00:00
parent e7fd4306c3
commit f6f0d40361
5 changed files with 0 additions and 10 deletions

View File

@ -169,7 +169,6 @@ const nsTArray<nsINode*>& HTMLSlotElement::ManuallyAssignedNodes() const {
}
void HTMLSlotElement::Assign(const Sequence<OwningElementOrText>& aNodes) {
MOZ_ASSERT(StaticPrefs::dom_shadowdom_slot_assign_enabled());
nsAutoScriptBlocker scriptBlocker;
// no-op if the input nodes and the assigned nodes are identical

View File

@ -274,7 +274,6 @@ partial interface Element {
dictionary ShadowRootInit {
required ShadowRootMode mode;
boolean delegatesFocus = false;
[Pref="dom.shadowdom.slot.assign.enabled"]
SlotAssignmentMode slotAssignment = "named";
};

View File

@ -18,7 +18,6 @@ interface HTMLSlotElement : HTMLElement {
[CEReactions, SetterThrows] attribute DOMString name;
sequence<Node> assignedNodes(optional AssignedNodesOptions options = {});
sequence<Element> assignedElements(optional AssignedNodesOptions options = {});
[Pref="dom.shadowdom.slot.assign.enabled"]
undefined assign((Element or Text)... nodes);
};

View File

@ -25,7 +25,6 @@ interface ShadowRoot : DocumentFragment
// Shadow DOM v1
readonly attribute ShadowRootMode mode;
readonly attribute boolean delegatesFocus;
[Pref="dom.shadowdom.slot.assign.enabled"]
readonly attribute SlotAssignmentMode slotAssignment;
readonly attribute Element host;
attribute EventHandler onslotchange;

View File

@ -4546,12 +4546,6 @@
value: @IS_NOT_ANDROID@
mirror: always
# Is the 'assign' API for slot element enabled?
- name: dom.shadowdom.slot.assign.enabled
type: bool
value: true
mirror: always
# NOTE: This preference is used in unit tests. If it is removed or its default
# value changes, please update test_sharedMap_static_prefs.js accordingly.
- name: dom.webcomponents.shadowdom.report_usage