Bug 1449753 - Remove the @-moz-document url-prefix() hack preference, enable it everywhere. r=jwatt

It doesn't seem like realistically we're going to be able to get rid of
this any time soon.

Differential Revision: https://phabricator.services.mozilla.com/D76809
This commit is contained in:
Emilio Cobos Álvarez 2020-05-26 09:39:33 +00:00
Родитель e7111415ca
Коммит 31c487f429
4 изменённых файлов: 1 добавлений и 26 удалений

Просмотреть файл

@ -1,8 +0,0 @@
<!doctype html>
<style>
div { color: green; }
@-moz-document url-prefix() {
div { color: red; }
}
</style>
<div>Should be green</div>

Просмотреть файл

@ -2050,8 +2050,7 @@ fuzzy-if(!webrender,0-74,0-2234) == 1425243-1.html 1425243-1-ref.html
fuzzy-if(Android,0-66,0-574) fuzzy-if(d2d,0-89,0-777) fuzzy-if(!Android&&!d2d,0-1,0-31341) fuzzy-if(webrender&&winWidget,1-1,31320-31320) == 1425243-2.html 1425243-2-ref.html
== 1430869.html 1430869-ref.html
== 1432541.html 1432541-ref.html
pref(layout.css.moz-document.url-prefix-hack.enabled,true) == 1446470.html 1035091-ref.html
pref(layout.css.moz-document.url-prefix-hack.enabled,false) == 1446470-2.html 1035091-ref.html
== 1446470.html 1035091-ref.html
== 1456111-1.html about:blank
# Note: The following test depends on having a pref-controllable CSS property,
# and the property needs to have a non-initial value that causes it to create

Просмотреть файл

@ -5730,18 +5730,6 @@
mirror: always
rust: true
# Pref to control whether @-moz-document url-prefix() is parsed in content
# pages. Only effective when layout.css.moz-document.content.enabled is false.
- name: layout.css.moz-document.url-prefix-hack.enabled
type: RelaxedAtomicBool
#ifdef EARLY_BETA_OR_EARLIER
value: false
#else
value: true
#endif
mirror: always
rust: true
# Whether the offset-* logical property aliases are enabled.
- name: layout.css.offset-logical-properties.enabled
type: bool

Просмотреть файл

@ -264,10 +264,6 @@ impl DocumentCondition {
return true;
}
if !pref!("layout.css.moz-document.url-prefix-hack.enabled") {
return false;
}
// Allow a single url-prefix() for compatibility.
//
// See bug 1446470 and dependencies.