Opened 3 years ago

Last modified 2 years ago

#5381 closed defect

CSS property filters error in old Chrome versions — at Version 5

Reported by: Ross Assignee: hfiguiere
Priority: P2 Milestone:
Module: Core Keywords:
Cc: kzar, hfiguiere, sebastian Blocked By:
Blocking: Platform: Chrome
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by hfiguiere)


Chrome 49 / 50 / Windows 7
Does not occur on Chrome 51+

How to reproduce

  1. Visit
  2. Open the console.
  3. Add the filter to ABP: 76px)
  4. Refresh the page.

Observed behaviour

The CSS property filter is not applied (The ABP logo should be hidden) and the following errors appear in the console:

Error in event handler for (unknown): TypeError: stylesheets[Symbol.iterator] is not a function
at Object.addSelectors (chrome-extension://ldcecbkkoecffmfljeihcmifjjdoepkn/elemHideEmulation.js:408:26)
at getFiltersFunc.patterns (chrome-extension://ldcecbkkoecffmfljeihcmifjjdoepkn/elemHideEmulation.js:477:14)

Expected behaviour

No errors to occur and the CSS property filter to be applied.

Change History (5)

comment:1 Changed 3 years ago by sebastian

  • Cc kzar hfiguiere sebastian added

comment:2 Changed 3 years ago by hfiguiere

So in Chrome 50 and below, document.styleSheets is not iterable....

comment:3 Changed 3 years ago by Ross

  • Description modified (diff)

(Added relevant Opera versions too)

Last edited 3 years ago by Ross (previous) (diff)

comment:4 Changed 3 years ago by Ross

  • Description modified (diff)

This also occurs with the old syntax with the last release.

comment:5 Changed 3 years ago by hfiguiere

  • Description modified (diff)
  • Owner set to hfiguiere

I can fix that, how far back do I have to test?

Note: See TracTickets for help on using tickets.