Bug 1523712 - Make -moz-binding chrome / UA only. r=boris

But enable it in all tests because a lot of them rely on using it in the
style="" attribute for example, or in inline stylesheets, which will no longer
parse this (even in chrome documents), and we don't want to rewrite all the XUL
and XBL tests.

Differential Revision: https://phabricator.services.mozilla.com/D18027

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-01-30 20:55:54 +00:00
parent 9da66b0f20
commit a155f63750
4 changed files with 9 additions and 14 deletions

View File

@ -331,20 +331,6 @@ exports.CSS_PROPERTIES = {
"visible"
]
},
"-moz-binding": {
"isInherited": false,
"subproperties": [
"-moz-binding"
],
"supports": [],
"values": [
"inherit",
"initial",
"none",
"unset",
"url"
]
},
"-moz-border-end": {
"isInherited": false,
"subproperties": [
@ -9825,6 +9811,10 @@ exports.PREFERENCES = [
"scroll-snap-destination",
"layout.css.scroll-snap.enabled"
],
[
"-moz-binding",
"layout.css.moz-binding.content.enabled"
],
[
"-webkit-text-stroke-width",
"layout.css.prefixes.webkit"

View File

@ -21,6 +21,8 @@ const NON_CONTENT_ACCESSIBLE_PROPERTIES = [
"-moz-font-smoothing-background-color",
"-moz-min-font-size-ratio",
"-moz-script-size-multiplier",
// TODO(emilio): Whenever we stop using `-moz-binding` in a gazillion tests
// we should add it here.
];
const sheet = document.getElementById("sheet");

View File

@ -591,6 +591,8 @@ ${helpers.predefined_type(
products="gecko",
animation_value_type="none",
gecko_ffi_name="mBinding",
gecko_pref="layout.css.moz-binding.content.enabled",
enabled_in="chrome",
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-binding)",
)}

View File

@ -56,3 +56,4 @@ user_pref("media.autoplay.ask-permission", false);
user_pref("media.autoplay.block-webaudio", false);
user_pref("media.allowed-to-play.enabled", true);
user_pref("toolkit.telemetry.coverage.endpoint.base", "http://localhost");
user_pref("layout.css.moz-binding.content.enabled", true); // Le sad