зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1270387 - Disable Node.rootNode in release builds due to web compatibility issues. r=smaug
MozReview-Commit-ID: Gc2XGuFAYlD --HG-- extra : rebase_source : 903fd104b36839b2fac27e0e67364abb95cec9ce
This commit is contained in:
Родитель
88d03021fb
Коммит
9adeb967f0
|
@ -36,7 +36,7 @@ interface Node : EventTarget {
|
|||
|
||||
[Pure]
|
||||
readonly attribute Document? ownerDocument;
|
||||
[Pure]
|
||||
[Pure, Pref="dom.node.rootNode.enabled"]
|
||||
readonly attribute Node rootNode;
|
||||
[Pure]
|
||||
readonly attribute Node? parentNode;
|
||||
|
|
|
@ -5335,3 +5335,10 @@ pref("dom.mozBrowserFramesEnabled", false);
|
|||
|
||||
// Is support for 'color-adjust' CSS property enabled?
|
||||
pref("layout.css.color-adjust.enabled", true);
|
||||
|
||||
// Disable Node.rootNode in release builds.
|
||||
#ifdef RELEASE_BUILD
|
||||
pref("dom.node.rootNode.enabled", false);
|
||||
#else
|
||||
pref("dom.node.rootNode.enabled", true);
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[interfaces.html]
|
||||
type: testharness
|
||||
prefs: [dom.node.rootNode.enabled:true]
|
||||
[MutationObserver interface: operation observe(Node,MutationObserverInit)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[rootNode.html]
|
||||
type: testharness
|
||||
prefs: [dom.node.rootNode.enabled:true]
|
Загрузка…
Ссылка в новой задаче