Skip to content
Permalink
Browse files

style: Hide -moz-gtk-buttonactivetext from content.

This prevents exposing the value to web content.

Differential Revision: https://phabricator.services.mozilla.com/D32611
  • Loading branch information...
emilio committed May 27, 2019
1 parent 729bf19 commit b34c27339b835c6455f3aa9ed369c59b72328593
Showing with 7 additions and 8 deletions.
  1. +7 −8 components/style/values/specified/color.rs
@@ -172,6 +172,7 @@ pub enum SystemColor {
MozOddtreerow,

/// Used for button text when pressed.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
MozGtkButtonactivetext,

/// Used for button text when pressed.
@@ -359,14 +360,12 @@ impl Parse for Color {
Err(e) => {
#[cfg(feature = "gecko")]
{
if let Ok(ident) = input.expect_ident() {
if let Ok(system) = SystemColor::from_ident(ident) {
return Ok(Color::System(system));
}

if let Ok(c) = gecko::SpecialColorKeyword::from_ident(ident) {
return Ok(Color::Special(c));
}
if let Ok(system) = input.try(|i| SystemColor::parse(context, i)) {
return Ok(Color::System(system));
}

if let Ok(c) = input.try(gecko::SpecialColorKeyword::parse) {
return Ok(Color::Special(c));
}
}

0 comments on commit b34c273

Please sign in to comment.
You can’t perform that action at this time.