Skip to content

Strange behavior no-xhr-if when specifying headers #2871

Description

@dimisa-RUAdList

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

If add any arbitrary header value to the rule, then all requests of this type are blocked.

A specific URL where the issue occurs.

https://pikabu.ru/

Steps to Reproduce

Add: pikabu.ru##+js(no-xhr-if, headers:blabla)

Expected behavior

There are no such values in the headers, so the rule shouldn't do anything.

Actual behavior

All xhr requests are blocked.

This issue was also discussed here: uBlockOrigin/uAssets@ca9898d#commitcomment-129975750

uBO version

uBlock Origin 1.52.3b9

Browser name and version

Firefox 118.0.2

Operating System and version

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidnot a uBO issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions