From d42adc912de2719fcae8e59f37652ea6c4d1e1fb Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 23 Feb 2018 09:45:51 -0500 Subject: [PATCH] fix silly mistake in fix for #3526 --- src/js/traffic.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index 3d6c2b4fc..2e277c5d6 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -871,6 +871,8 @@ var filterDocument = (function() { charset: undefined }; + request.selectors = µb.htmlFilteringEngine.retrieve(request); + // https://github.com/gorhill/uBlock/issues/3526 // https://github.com/uBlockOrigin/uAssets/issues/1492 // Two distinct issues, but both are arising as a result of @@ -880,9 +882,8 @@ var filterDocument = (function() { // script tags on a page. // if ( µb.hiddenSettings.streamScriptInjectFilters ) { - request.selectors = µb.htmlFilteringEngine.retrieve(request); + request.scriptlets = µb.scriptletFilteringEngine.retrieve(request); } - request.scriptlets = µb.scriptletFilteringEngine.retrieve(request); if ( request.selectors === undefined &&