From aee6b2d1cbbd218e6961a3aa5c5597e807b44335 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 2 Sep 2019 08:43:49 -0400 Subject: [PATCH] Fix regression in filter compilation in element picker Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/715 Regression from fix to issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/710 --- src/js/messaging.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index e2da76682..347fe6ce6 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -95,12 +95,6 @@ const onMessage = function(request, sender, callback) { response = µb.applyFilterListSelection(request); break; - case 'compileCosmeticFilterSelector': - response = µb.staticExtFilteringEngine.compileSelector( - request.selector - ); - break; - case 'createUserFilter': µb.createUserFilters(request); break; @@ -687,6 +681,12 @@ const onMessage = function(request, sender, callback) { let response; switch ( request.what ) { + case 'compileCosmeticFilterSelector': + response = µb.staticExtFilteringEngine.compileSelector( + request.selector + ); + break; + // https://github.com/gorhill/uBlock/issues/3497 // This needs to be removed once issue is fixed. case 'createUserFilter':