Skip to content

Stylus Enables/Disables the Wrong Style with Multiple Active Styles, when Circumvent CSP is On #1926

@BoffinBrain

Description

@BoffinBrain

When there are multiple styles for the current page, enabling or disabling a style on the styles page or toolbar popup will affect the wrong style (i.e. toggling style X will actually toggle style Y).

This seems to be related to having "Circumvent CSP" enabled. When disabled, I cannot reproduce, and turning it back on makes the bug reappear immediately.

Description

  1. Have 2 or more styles for the same domain active on a page.
  2. Enable "Circumvent CSP 'style-src' via adoptedSty­leSheets."
  3. Toggle one of the styles off and on again. It might disable/enable the wrong style. This will continue to happen indefinitely.
  4. Toggle one of the other styles off and on. This should temporarily fix the issue for that style until the next refresh (others may still bug out if you have 3 or more).

System Information

  • OS: Windows 10
  • Browser: Firefox 136.0b6
  • Stylus Version: 2.3.10

Screenshots, links, CSS

This is an example of the three styles I was using. They all have domain("mixcloud.com")

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions