Skip to content

Extension goes into infinite loop when switching system dark/light mode #1941

@majutsushi

Description

@majutsushi

Description

When setting the "Dark/Light mode" to "By system preference" and toggling the mode in the system the extension seems to go into some kind of infinite loop. The toolbar icon and manager page start rapidly flashing between the two modes and use up a lot of CPU. Manually setting dark or light mode in the extension, or activating the extension during either system mode, does not cause this behaviour. This only started relatively recently.

I've created a Firefox profiler result here: https://share.firefox.dev/3Flhkgn

I'm not seeing any errors in the console that look relevant.

System Information

  • OS: Linux
  • Browser: Firefox 136.0
  • Stylus Version: 2.3.13

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