From 044a1dd6ee36c6b5ec0fe25f139f435a005edf0c Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 26 Mar 2020 09:19:02 -0400 Subject: [PATCH] Fix `:style` exception filters not being reported in logger Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/962 Regression from: - https://github.com/gorhill/uBlock/commit/72bb70056843024b1a31fe1ab9c90bd4e8260ba2 --- src/js/scriptlets/cosmetic-logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/scriptlets/cosmetic-logger.js b/src/js/scriptlets/cosmetic-logger.js index a7c6aef3e..57ee4723a 100644 --- a/src/js/scriptlets/cosmetic-logger.js +++ b/src/js/scriptlets/cosmetic-logger.js @@ -277,8 +277,8 @@ const handlers = { continue; } const details = JSON.parse(selector); - if ( Array.isArray(details.style) ) { - exceptionDict.set(details.style[0], details.raw); + if ( details.action === 'style' ) { + exceptionDict.set(details.selector, details.raw); continue; } proceduralExceptionDict.set(