From 827f0e4971dda0fd967c45a8ff8161f405fd7ad2 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 26 Jan 2023 10:12:59 -0500 Subject: [PATCH] Do not disallow using inline-script with real network types Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/10l2jjr/help_latest_ubo_developer_version_is_not_working/j5wdjjv/ --- src/js/static-filtering-parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index 31b50901c..eb80d20e0 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -877,6 +877,7 @@ export class AstFilterParser { realBad = hasValue; if ( realBad ) { break; } modifierType = type; + unredirectableTypeCount += 1; break; case NODE_TYPE_NET_OPTION_NAME_MATCHCASE: realBad = this.isRegexPattern() === false; @@ -941,7 +942,7 @@ export class AstFilterParser { break; case NODE_TYPE_NET_OPTION_NAME_INLINEFONT: case NODE_TYPE_NET_OPTION_NAME_INLINESCRIPT: - realBad = abstractTypeCount || behaviorTypeCount || requestTypeCount; + realBad = abstractTypeCount || behaviorTypeCount; break; case NODE_TYPE_NET_OPTION_NAME_EMPTY: realBad = abstractTypeCount || behaviorTypeCount;