Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Nano adblocker causes CPU spike under certain conditions #348

Closed

Description

@liamengland1

Describe the issue (Required)

Nano adblocker causes Chrome devtools to lag and eat CPU under certain conditions.

Screenshots (Required)

image

Screenshot of console (Required, press F12 to open the console)

It's empty

URLs where this issue occurs (Required if applicable)

http://example.com

Reproduction Steps (Optional if trivial)

  1. Add example.com##* to my filters
  2. Visit http://example.com
  3. Open devtools

Anything else you believe to be useful (Optional)

Nano Adblocker adds display: none!important as an inline style over and over on the html tag on any site where a filter of type example.com##* is applied.

Cannot reproduce CPU spike in uBo or Nano firefox.

Environment (Required)

  • Operating System and Version: Windows 10 1909
  • Browser and Version: Chrome 83.0.4103.116
  • Nano Adblocker Version: 1.0.0.149
  • Nano Defender Version (Optional if you are not using it):

Your filter lists (Required)

N/A

Your custom filters (Required if you have any)

N/A

Your other extensions (Required if you have any)

N/A

Activity

  1. jspenguin2017 commented on Jul 3, 2020

    @jspenguin2017
    Member

    Hum... Looks like a bug with the pseudo UserCSS engine.

    @gorhill are you still maintaining the pseudo UserCSS engine?

  2. gorhill commented on Jul 3, 2020

    @gorhill

    Frankly I think it's probably best to just drop pseudo user styles and fall back on using insertCSS() without the cssOrigin parameter, it's not worth maintaining a not trivial code base which is meant for pre-Chromium 66. The only consequence is that whoever uses old versions of Chromium may not have their cosmetic filters being enforced.

  3. added a commit that references this issue on Jul 3, 2020
  4. gorhill commented on Jul 3, 2020

    @gorhill

    Trivially fixed with gorhill@a5ba668.

    Though I will still drop support of the pseudo version in next release.

  5. added a commit that references this issue on Jul 22, 2020
  6. added
    archived
    on Aug 21, 2020
  7. locked and limited conversation to collaborators on Aug 21, 2020
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

    archivedbugfixed upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions