Allow everybody to use now-stable `queryprune=`

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/760
This commit is contained in:
Raymond Hill 2021-01-06 11:17:07 -05:00
parent b392866803
commit 2ab11603f0
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 5 additions and 5 deletions

View File

@ -2527,10 +2527,7 @@ const NetOptionsIterator = class {
{
const i = this.tokenPos[OPTTokenQueryprune];
if ( i !== -1 ) {
if (
this.parser.expertMode === false ||
hasBits(allBits, OPTNonNetworkType)
) {
if ( hasBits(allBits, OPTNonNetworkType) ) {
optSlices[i] = OPTTokenInvalid;
if ( this.interactive ) {
this.parser.errorSlices(optSlices[i+1], optSlices[i+5]);
@ -2572,7 +2569,10 @@ const NetOptionsIterator = class {
{
const i = this.tokenPos[OPTTokenHeader];
if ( i !== -1 ) {
if ( hasBits(allBits, OPTModifierType) ) {
if (
this.parser.expertMode === false ||
hasBits(allBits, OPTModifierType)
) {
optSlices[i] = OPTTokenInvalid;
if ( this.interactive ) {
this.parser.errorSlices(optSlices[i+1], optSlices[i+5]);