Skip to content
This repository was archived by the owner on Sep 19, 2020. It is now read-only.
This repository was archived by the owner on Sep 19, 2020. It is now read-only.

Subdomains of blocklisted domains are incorrectly displayed as explicitly blocked #284

@xofe

Description

@xofe

Prerequisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
  • This is not a support issue or a question
    • Support issues and questions are handled at /r/uMatrix
  • I tried to reproduce the issue when...
    • uMatrix extension is wholly disabled or not installed
    • uMatrix is the only extension
    • uMatrix with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uMatrix
  • I checked the documentation to understand that the issue I report is not a normal behavior
  • I used the logger to rule out that the issue is caused by my ruleset

Description

Subdomains of blocklisted domains are incorrectly displayed as explicitly blocked, rather than inherited blocked.
This does not occur in v1.4.0. git bisect blames gorhill/uMatrix@9b29230.

A specific URL where the issue occurs

http://xofe.mm.st/umatrix-subdomain-test/

Site source:

<img src="//test-domain.invalid/">
<img src="//domain-not-in-list.test-domain.invalid/">
<img src="//domain-in-list.test-domain.invalid/">

Using hosts list: http://xofe.mm.st/umatrix-subdomain-test/blocklist.txt

List source:

0.0.0.0 test-domain.invalid
0.0.0.0 domain-in-list.test-domain.invalid

Steps to Reproduce

  1. Open clean browser profile and install uMatrix latest.
  2. Add hosts list http://xofe.mm.st/umatrix-subdomain-test/blocklist.txt.
  3. Navigate to http://xofe.mm.st/umatrix-subdomain-test/.
  4. Open uMatrix popup and notice domain-not-in-list.test-domain.invalid is dark red (explicit block) rather than pale red (inherited block)

Ruleset

Default ruleset

Supporting evidence

Version 1.4.0:
1 4 0

Version 1.4.1b6:
1 4 1

Your environment

  • uMatrix version: 1.4.1b6 (b26b3bb)
  • Browser Name and version: Firefox 80

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions