Bug 1702330 - Remove -moz-proton-infobars media query support r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D110963
This commit is contained in:
Mark Striemer 2021-04-11 17:28:02 +00:00
parent 0acdda5d09
commit fa48ebee58
5 changed files with 1 additions and 11 deletions

View File

@ -30,7 +30,6 @@ const CHROME_ONLY_TOGGLES = [
"-moz-proton-contextmenus",
"-moz-proton-modals",
"-moz-proton-doorhangers",
"-moz-proton-infobars",
"-moz-proton-places-tooltip",
];

View File

@ -1165,12 +1165,6 @@
mirror: always
rust: true
- name: browser.proton.infobars.enabled
type: RelaxedAtomicBool
value: false
mirror: always
rust: true
- name: browser.proton.places-tooltip.enabled
type: RelaxedAtomicBool
value: false

View File

@ -624,7 +624,7 @@ macro_rules! bool_pref_feature {
/// to support new types in these entries and (2) ensuring that either
/// nsPresContext::MediaFeatureValuesChanged is called when the value that
/// would be returned by the evaluator function could change.
pub static MEDIA_FEATURES: [MediaFeatureDescription; 62] = [
pub static MEDIA_FEATURES: [MediaFeatureDescription; 61] = [
feature!(
atom!("width"),
AllowsRanges::Yes,
@ -863,6 +863,5 @@ pub static MEDIA_FEATURES: [MediaFeatureDescription; 62] = [
bool_pref_feature!(atom!("-moz-proton-modals"), "browser.proton.modals.enabled"),
bool_pref_feature!(atom!("-moz-proton-contextmenus"), "browser.proton.contextmenus.enabled"),
bool_pref_feature!(atom!("-moz-proton-doorhangers"), "browser.proton.doorhangers.enabled"),
bool_pref_feature!(atom!("-moz-proton-infobars"), "browser.proton.infobars.enabled"),
bool_pref_feature!(atom!("-moz-proton-places-tooltip"), "browser.proton.places-tooltip.enabled"),
];

View File

@ -421,7 +421,6 @@ static constexpr nsLiteralCString kBoolMediaQueryPrefs[] = {
"browser.proton.contextmenus.enabled"_ns,
"browser.proton.modals.enabled"_ns,
"browser.proton.doorhangers.enabled"_ns,
"browser.proton.infobars.enabled"_ns,
"browser.proton.places-tooltip.enabled"_ns,
};

View File

@ -2222,7 +2222,6 @@ STATIC_ATOMS = [
Atom("_moz_proton_contextmenus", "-moz-proton-contextmenus"),
Atom("_moz_proton_doorhangers", "-moz-proton-doorhangers"),
Atom("_moz_proton_modals", "-moz-proton-modals"),
Atom("_moz_proton_infobars", "-moz-proton-infobars"),
Atom("_moz_proton_places_tooltip", "-moz-proton-places-tooltip"),
Atom("_moz_system_dark_theme", "-moz-system-dark-theme"),
# application commands