Index: lib/content/elemHideEmulation.js |
=================================================================== |
--- a/lib/content/elemHideEmulation.js |
+++ b/lib/content/elemHideEmulation.js |
@@ -451,17 +451,17 @@ |
() => this.selectors.some(selector => selector.dependsOnCharacterData) |
); |
} |
}; |
function filterPatterns(patterns, {stylesheets, mutations}) |
{ |
if (!stylesheets && !mutations) |
- return patterns.slice(); |
+ return patterns.filter(pattern => pattern.dependsOnStyles); |
return patterns.filter( |
pattern => (stylesheets && pattern.dependsOnStyles) || |
(mutations && pattern.dependsOnDOM) |
); |
} |
function shouldObserveAttributes(patterns) |