diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-01-17 15:07:49 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 16:44:05 +0100 |
commit | df7ea837d8bbed29df400374e0c862c5d80bf573 (patch) | |
tree | 3e808ddcb915e92b651f2c4bee651462ae790b3a /components/style/selector_parser.rs | |
parent | f16305d25aea18056d8cc1423bcfe915e50204be (diff) | |
download | servo-df7ea837d8bbed29df400374e0c862c5d80bf573.tar.gz servo-df7ea837d8bbed29df400374e0c862c5d80bf573.zip |
style: Allow resource:// stylesheets to use chrome-only rules.
We'll use it to use @-moz-document from plaintext.css.
Differential Revision: https://phabricator.services.mozilla.com/D101516
Diffstat (limited to 'components/style/selector_parser.rs')
-rw-r--r-- | components/style/selector_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/selector_parser.rs b/components/style/selector_parser.rs index a8b5c3bc33e..52675abf45a 100644 --- a/components/style/selector_parser.rs +++ b/components/style/selector_parser.rs @@ -75,7 +75,7 @@ impl<'a> SelectorParser<'a> { /// Whether we're parsing selectors in a stylesheet that has chrome /// privilege. pub fn chrome_rules_enabled(&self) -> bool { - self.url_data.map_or(false, |d| d.is_chrome()) || self.stylesheet_origin == Origin::User + self.url_data.map_or(false, |d| d.chrome_rules_enabled()) || self.stylesheet_origin == Origin::User } } |