Skip to content

Incorrect application of "domainType: thirdParty" in DNR - blocking direct access to iana.org when opening a new tab #731

@105th

Description

@105th

Description:

I have encountered an issue where the DNR incorrectly applies rule with domainType: thirdParty, leading to the blocking of direct access to iana.org when opening it in a new tab, when this is a first-party request. As well as opening this site from example.org, when it is a true third-party request.

Steps to Reproduce:

  1. Add test rule (you can do it from test extension)
    dummy-extension-chrome.zip
    dummy-extension-firefox.zip
{
  id: 1,
  action: {
    type: 'block',
  },
  condition: {
    domainType: 'thirdParty',
    urlFilter: 'iana.org',
    resourceTypes: ['main_frame', 'sub_frame'],
  },
}
  1. Open a new tab in a browser with address 'iana.org'.
  2. Observe that the page is blocked.

Expected Behavior:

iana.org should not be classified as a third-party domain when the user directly accesses it via the address bar.

Actual Behavior:

When accessing iana.org from address bar, it is being blocked as well as opening it from 'example.com'

Browser Details:

Tested on

  • Chrome 131.0.6778.86 (Official Build) (arm64)
  • Firefox 133.0 (aarch64)

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