1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-05 18:49:39 +02:00

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/
This commit is contained in:
Raymond Hill 2023-01-26 10:12:59 -05:00
parent 0b1f7d2936
commit 827f0e4971
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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