mirror of https://github.com/gorhill/uBlock.git
Make `object` equivalent of `frame` for dynamic filtering purpose
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2496
This commit is contained in:
parent
2c55bc3780
commit
b4ae2d3bf4
|
@ -292,14 +292,13 @@ class DynamicHostRuleFiltering {
|
|||
this.y = '*';
|
||||
|
||||
// Specific party
|
||||
// TODO: equate `object` as `sub_frame`
|
||||
if ( thirdParty ) {
|
||||
// 3rd-party, specific type
|
||||
if ( type === 'script' ) {
|
||||
if ( this.evaluateCellZ(srcHostname, '*', '3p-script') !== 0 ) {
|
||||
return this.r;
|
||||
}
|
||||
} else if ( type === 'sub_frame' ) {
|
||||
} else if ( type === 'sub_frame' || type === 'object' ) {
|
||||
if ( this.evaluateCellZ(srcHostname, '*', '3p-frame') !== 0 ) {
|
||||
return this.r;
|
||||
}
|
||||
|
|
|
@ -286,6 +286,7 @@ const nodeFromURL = function(parent, url, re, type) {
|
|||
case 'css':
|
||||
case 'doc':
|
||||
case 'frame':
|
||||
case 'object':
|
||||
case 'other':
|
||||
case 'script':
|
||||
case 'xhr':
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<div><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span>
|
||||
<span style="flex-direction: column;">
|
||||
<div style="margin-bottom: 1px;"><span data-filtex="\t(?:css|(?:inline-)?font)\t">css/font</span><span data-filtex="\timage\t">image</span><span data-filtex="\tmedia\t">media</span><span data-filtex="\t(?:inline-)?script(?:ing)?\t">script</span></div>
|
||||
<div><span data-filtex="\t(?:websocket|xhr)\t">xhr</span><span data-filtex="\tframe\t">frame</span><span data-filtex="\t(?:dom|g(?:eneric)?hide|s(?:pecific)?hide)\t">dom</span><span data-filtex="\t(?:beacon|csp_report|doc|ping|popup|popunder|other)\t">other</span></div>
|
||||
<div><span data-filtex="\t(?:websocket|xhr)\t">xhr</span><span data-filtex="\t(?:frame|object)\t">frame</span><span data-filtex="\t(?:dom|g(?:eneric)?hide|s(?:pecific)?hide)\t">dom</span><span data-filtex="\t(?:beacon|csp_report|doc|ping|popup|popunder|other)\t">other</span></div>
|
||||
</span>
|
||||
</div>
|
||||
<div><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span><span data-filtex="\t(?:0,)?1\t" data-i18n="loggerRowFiltererBuiltin1p"></span><span data-filtex="\t(?:3(?:,\d)?|0,3)\t" data-i18n="loggerRowFiltererBuiltin3p"></span></div>
|
||||
|
|
Loading…
Reference in New Issue