Pref and disable getRootNode()

This is apparently used for fallback selection and if available it is "assumed"
Shadow DOM is also available, while this is a utility function.

Webcompat is a nightmare sometimes.
This commit is contained in:
Moonchild 2020-08-07 21:15:52 +00:00 committed by Roy Tam
commit 26990a1d74
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,7 @@ interface Node : EventTarget {
readonly attribute boolean isConnected;
[Pure]
readonly attribute Document? ownerDocument;
[Pure]
[Pure, Pref="dom.getRootNode.enabled"]
Node getRootNode(optional GetRootNodeOptions options);
[Pure]
readonly attribute Node? parentNode;

View file

@ -4744,6 +4744,8 @@ pref("dom.push.enabled", false);
pref("dom.push.loglevel", "error");
pref("dom.getRootNode.enabled", false);
pref("dom.push.serverURL", "wss://push.services.mozilla.com/");
pref("dom.push.userAgentID", "");