mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1849674 - Remove dom.shadowdom.slot.assign.enabled pref r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D186675
This commit is contained in:
parent
e7fd4306c3
commit
f6f0d40361
@ -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
|
||||
|
@ -274,7 +274,6 @@ partial interface Element {
|
||||
dictionary ShadowRootInit {
|
||||
required ShadowRootMode mode;
|
||||
boolean delegatesFocus = false;
|
||||
[Pref="dom.shadowdom.slot.assign.enabled"]
|
||||
SlotAssignmentMode slotAssignment = "named";
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user