Skip to content

Error in content-script when $jsinject exception is applied #1960

@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 version

7.21.0 nightly 12 (4969) (CL 1.17.94, DL 2.5.63 )

Browser version

Chrome 134

OS version

Windows 11

Issue Details

Steps to reproduce:

  1. Add this rule to user rules:
@@||example.org^$jsinject
  1. Go to - https://example.org/
  2. Open browser console

Expected Behavior

There should not be any error.

Actual Behavior

There is an error:

Uncaught TypeError: Cannot read properties of null (reading 'length')

Screenshots

Screenshot 1

Image

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions