mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 19:32:42 +01: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:
parent
0b1f7d2936
commit
827f0e4971
@ -877,6 +877,7 @@ export class AstFilterParser {
|
|||||||
realBad = hasValue;
|
realBad = hasValue;
|
||||||
if ( realBad ) { break; }
|
if ( realBad ) { break; }
|
||||||
modifierType = type;
|
modifierType = type;
|
||||||
|
unredirectableTypeCount += 1;
|
||||||
break;
|
break;
|
||||||
case NODE_TYPE_NET_OPTION_NAME_MATCHCASE:
|
case NODE_TYPE_NET_OPTION_NAME_MATCHCASE:
|
||||||
realBad = this.isRegexPattern() === false;
|
realBad = this.isRegexPattern() === false;
|
||||||
@ -941,7 +942,7 @@ export class AstFilterParser {
|
|||||||
break;
|
break;
|
||||||
case NODE_TYPE_NET_OPTION_NAME_INLINEFONT:
|
case NODE_TYPE_NET_OPTION_NAME_INLINEFONT:
|
||||||
case NODE_TYPE_NET_OPTION_NAME_INLINESCRIPT:
|
case NODE_TYPE_NET_OPTION_NAME_INLINESCRIPT:
|
||||||
realBad = abstractTypeCount || behaviorTypeCount || requestTypeCount;
|
realBad = abstractTypeCount || behaviorTypeCount;
|
||||||
break;
|
break;
|
||||||
case NODE_TYPE_NET_OPTION_NAME_EMPTY:
|
case NODE_TYPE_NET_OPTION_NAME_EMPTY:
|
||||||
realBad = abstractTypeCount || behaviorTypeCount;
|
realBad = abstractTypeCount || behaviorTypeCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user