From 322113a393f3a443663c6f208f5ab7cce08b47d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 17 Mar 2018 00:00:36 +0100 Subject: [PATCH] style: Add another pref to control the url-prefix hack. MozReview-Commit-ID: D4qL0oO69Uh Bug: 1446470 Reviewed-by: xidorn --- components/style/stylesheets/document_rule.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/stylesheets/document_rule.rs b/components/style/stylesheets/document_rule.rs index 596ea487510..ad2c9d86219 100644 --- a/components/style/stylesheets/document_rule.rs +++ b/components/style/stylesheets/document_rule.rs @@ -224,6 +224,10 @@ impl DocumentCondition { return true; } + if !unsafe { structs::StylePrefs_sMozDocumentURLPrefixHackEnabled } { + return false; + } + // Allow a single url-prefix() for compatibility. // // See bug 1446470 and dependencies.