Index: lib/content/elemHideEmulation.js |
=================================================================== |
--- a/lib/content/elemHideEmulation.js |
+++ b/lib/content/elemHideEmulation.js |
@@ -425,18 +425,21 @@ |
// between Firefox and Chrome. |
if (!this.isSameOrigin(stylesheet)) |
continue; |
let rules = stylesheet.cssRules; |
if (!rules) |
continue; |
- for (let rule of rules) |
+ // Chrome < 51 doesn't have an iterable CSSRuleList |
+ // https://issues.adblockplus.org/ticket/5773 |
+ for (let i = 0; i < rules.length; i++) |
{ |
+ let rule = rules[i]; |
if (rule.type != rule.STYLE_RULE) |
continue; |
cssStyles.push(stringifyStyle(rule)); |
} |
} |
let {document} = this.window; |