From 3ac0dd05cf6089f501f2c7cf29792bbcd892dc62 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 3 Apr 2017 18:28:47 +0200 Subject: [PATCH] ParserContext::new_for_cssom is used for author origin, not user. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This probably doesn’t make any difference since the only thing we do with this origin is test whether it is user-agent (for internal properties), but this is more correct. --- components/style/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/parser.rs b/components/style/parser.rs index 941946399ff..024d71de936 100644 --- a/components/style/parser.rs +++ b/components/style/parser.rs @@ -39,7 +39,7 @@ impl<'a> ParserContext<'a> { pub fn new_for_cssom(url_data: &'a UrlExtraData, error_reporter: &'a ParseErrorReporter) -> ParserContext<'a> { - Self::new(Origin::User, url_data, error_reporter) + Self::new(Origin::Author, url_data, error_reporter) } }