Skip to content

uBO ignores policies.json #3905

@EKHH

Description

@EKHH

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 YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • 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

In accordance with advises given in the relevant page and #3095, I I have configured uBlock Origin on NixOS 26.05 using Home Manager. Below I attached the relevant snippet of my configuration.

programs.librewolf.policies = {
  BlockAboutConfig = true;
  ExtensionSettings = {
    "3rdparty".Extensions."[email protected]" = {
      userSettings = [
        ["advancedUserEnabled" "true"]
        ["contextMenuEnabled" "false"]
      ];
      disableDashboard = true;
    };
  };
};

The said configuration produced policies.json as shown, which appeared to be in the correct format.

$ sed -e 1p -e 3p -n -e 54,71p ./distribution/policies.json
{
  "policies": {
    "3rdparty": {
      "Extensions": {
        "[email protected]": {
          "disableDashboard": true,
          "userSettings": [
            [
              "advancedUserEnabled",
              "true"
            ],
            [
              "contextMenuEnabled",
              "false"
            ]
          ]
        }
      }
    },
    "BlockAboutConfig": true,

Navigation to about:config was blocked as expected, but Make use of context menu where appropriate was selected in the dashboard whereas I am an advanced user was not. The dashboard was not disabled.
Image

A specific URL where the issue occurs.

about:policies

Steps to Reproduce

  1. Configure uBlock Origin using distribution/policies.json.
  2. Open the dashboard.

Expected behavior

uBlock Origin should respect entries provided in policies.json.

Actual behavior

uBlock Origin does not respect entries provided in policies.json.

uBO version

1.68.0

Browser name and version

LibreWolf 145.0.1-2

Operating System and version

Linux 6.17.11-300.fc43.x86_64

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