cosmetic filtering: discard new ABP's CSS property filters (until implemented)

This commit is contained in:
gorhill 2016-03-02 08:10:59 -05:00
parent 441336dc2f
commit 5a7ab32d24
1 changed files with 5 additions and 1 deletions

View File

@ -689,7 +689,11 @@ FilterContainer.prototype.isValidSelector = (function() {
try {
// https://github.com/gorhill/uBlock/issues/693
div.matches(s + ',\n#foo');
return true;
// Discard new ABP's `-abp-properties` directive until it is
// implemented (if ever).
if ( s.indexOf('[-abp-properties=') === -1 ) {
return true;
}
} catch (e) {
}
// We reach this point very rarely.