Skip to content

My rules have different sort order in firefox and chromium #3870

Open

Description

@shell-surfer

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

My rules are sorted differently when the same rules are exported from firefox and imported into chromium or vice versa. All settings are default and the sort type is Rule type in both cases.

chromium sort is as follows

chatgpt.com * 3p-script noop
community.bitwarden.com * 3p-script noop
github.com * 3p-script noop
substack.com * 3p-script noop
www.amazon.in * 3p-script noop
www.instagram.com * 3p-script noop
www.reddit.com * 3p-script noop
www.youtube.com * 3p-script noop
x.com * 3p-script noop

firefox sort for the same rules

www.amazon.in * 3p-script noop
community.bitwarden.com * 3p-script noop
chatgpt.com * 3p-script noop
github.com * 3p-script noop
www.instagram.com * 3p-script noop
www.reddit.com * 3p-script noop
substack.com * 3p-script noop
x.com * 3p-script noop
www.youtube.com * 3p-script noop
Image

firefox rules

Image

chromium rules

A specific URL where the issue occurs.

ublock settings

Steps to Reproduce

  1. Add some rules to firefox my rules pane
  2. Export these rules
  3. Import them into chromium my rules

Expected behavior

Both my rules pane are expected to have the the same sort order for the same sort type.

Actual behavior

Both have different sort orders with firefox sorting always based on SLD and chromium on subdomains if available.

uBO version

uBlock Origin 1.67.0

Browser name and version

Firefox 145.0, Chromium 142.0.7444.162

Operating System and version

Windows 11 25H2 26200.7171

Activity

  1. freezer2022 commented on Nov 18, 2025

    @freezer2022

    A duplicate of:

    (as the same happens for My Rules backup and also for dynamicFilteringString in full backup)

  2. gorhill commented on Nov 18, 2025

    @gorhill
    Member

    The issue is caused by the fact that in Firefox, runtime.sendMessage is able to pass any structuredClone-able data, while in Chromium, only JSON-able data can be passed. The consequence is the code used to extract domain names fails in Chromium because the publicSuffixList library ends up not being properly initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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