uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

[Firefox] Flickering happens on a special case - cosmetic filters

Open g3939434 opened this issue 11 years ago • 3 comments

Firefox 39.0, uBlock Origin 1.0.0.0

Flickering happens on a special case when using cosmetic filters, no matter if they are specific cosmetic filters or cached generic cosmetic filters which should injected before page's root DOM is loaded.

Steps to Reproduce:

  1. Create filter bbs.pcbeta.com##.hdc > h2

  2. Go to http://bbs.pcbeta.com/ and the logo on the top left corner should be hidden but with flickering.

  3. Reload the page and flickering still happens.

This behavior does not happen in chrome. I don't know if this is an expected behavior due to different rendering engine, or the result of fix on chrisaljoudi/uBlock issue 789.

Additional Information:

  1. The page use a script to remove style tag. So blocking 3p-script will not happen flickering.
  2. Enable Shadow DOM dom.webcomponents.enabled, flickering still happens.
  3. uBlock Origin chrome version does not happen flickering.
  4. Adblock Plus does not happen flickering.
  5. Stylish does not happen flickering.

g3939434 avatar Jul 26 '15 22:07 g3939434

The same to me. This animation: http://i62.tinypic.com/34smour.gif Everytime I reloaded pages of this site, the ad banner flicked and disappeared immediately.

wlq105556 avatar Jul 27 '15 11:07 wlq105556

As mentioned by OP, the page remove the style tags, so uBlock has to re-insert it. Shadow DOM does not help currently here because when the specific style was injected, the node to hide did not exist yet, so it could not be "shadowed". However I could try to shadow it when I re-insert the style tag.

That this does not happen in Chromium is probably just because of different rendering engines between FF/Chromium.

gorhill avatar Jul 27 '15 12:07 gorhill

Not an issue anymore since uBO uses user stylesheets on Firefox.

gorhill avatar Sep 11 '17 11:09 gorhill