Allow usage of csp=/permissions= with resource type object

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3746
This commit is contained in:
Raymond Hill 2025-08-10 09:22:17 -04:00
parent 4d4826a029
commit 07e9f805bb
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1273,7 +1273,6 @@ export class AstFilterParser {
case NODE_TYPE_NET_OPTION_NAME_FONT:
case NODE_TYPE_NET_OPTION_NAME_IMAGE:
case NODE_TYPE_NET_OPTION_NAME_MEDIA:
case NODE_TYPE_NET_OPTION_NAME_OBJECT:
case NODE_TYPE_NET_OPTION_NAME_OTHER:
case NODE_TYPE_NET_OPTION_NAME_SCRIPT:
case NODE_TYPE_NET_OPTION_NAME_XHR:
@ -1301,6 +1300,7 @@ export class AstFilterParser {
break;
case NODE_TYPE_NET_OPTION_NAME_DOC:
case NODE_TYPE_NET_OPTION_NAME_FRAME:
case NODE_TYPE_NET_OPTION_NAME_OBJECT:
realBad = hasValue;
if ( realBad ) { break; }
docTypeCount += 1;