Skip to content

Network rules with $important modifier are applied even if protection is disabled #3227

@AdamWr

Description

@AdamWr

Please answer the following questions for yourself before submitting an issue

  • Filters were updated before reproducing an issue
  • I checked the knowledge base and found no answer
  • I checked to make sure that this issue has not already been filed

AdGuard Extension version

5.1.94

Browser version

Chrome 138

OS version

Windows 11

Ad Blocking

AdGuard Base filter

Issue Details

Steps to reproduce:

  1. Add to user rules:
||securepubads.g.doubleclick.net/tag/js/gpt.js$script,domain=example.org,important
  1. Go to - https://example.org/
  2. Disable protection or add example.org to allowlist and reload website
  3. Open browser console and execute:
const script = document.createElement('script');
script.src = 'https://securepubads.g.doubleclick.net/tag/js/gpt.js';
document.head.appendChild(script);

Expected Behavior

Request should not be blocked.

Actual Behavior

If there is a rule with $important modifier, then request is blocked even if protection is disabled.

Screenshot

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions