1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Discard :style() filters chained to procedural operators

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/961
This commit is contained in:
Raymond Hill 2020-03-26 08:38:22 -04:00
parent 8c6fc09262
commit 2f927847f2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -528,7 +528,13 @@
}
// Expose action to take in root descriptor.
//
// https://github.com/uBlockOrigin/uBlock-issues/issues/961
// https://github.com/uBlockOrigin/uBlock-issues/issues/382
// For the time being, `style` action can't be used in a
// procedural selector.
if ( action !== undefined ) {
if ( tasks.length > 1 && action === 'style' ) { return; }
out.action = action;
}