fix silly mistake in fix for #3526

This commit is contained in:
Raymond Hill 2018-02-23 09:45:51 -05:00
parent 9fb455d2df
commit d42adc912d
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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 &&