[Firefox] Flickering happens on a special case - cosmetic filters
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:
-
Create filter
bbs.pcbeta.com##.hdc > h2 -
Go to http://bbs.pcbeta.com/ and the logo on the top left corner should be hidden but with flickering.
-
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:
- The page use a script to remove style tag. So blocking
3p-scriptwill not happen flickering. - Enable Shadow DOM
dom.webcomponents.enabled, flickering still happens. - uBlock Origin chrome version does not happen flickering.
- Adblock Plus does not happen flickering.
- Stylish does not happen flickering.
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.
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.
Not an issue anymore since uBO uses user stylesheets on Firefox.