From 2f927847f2bea740eab622183668173e50a151d8 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 26 Mar 2020 08:38:22 -0400 Subject: [PATCH] Discard `:style()` filters chained to procedural operators Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/961 --- src/js/static-ext-filtering.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index c855f3638..43806e761 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -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; }