laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 258 forks source link

Firefox 53 screenshot issue #620

Open Bantam opened 7 years ago

Bantam commented 7 years ago

I was playing around with current SlimerJS with Firefox 53 and there currently appears to be a line of transparent pixels on the right hand side with any screenshot where the page would scroll, if the page is shorter than the height of the viewport it doesn't seem to happen (I assume it's a scrollbar issue).

Firefox 52: http://imgur.com/NZVrgKz Firefox 53: http://imgur.com/9WkgKSd

Affects SlimerJS 10.0.3 using Xvfb, running on Ubuntu Yakkety if that helps!

belozer commented 7 years ago

How you run slimer with Firefox 53?

laurentj commented 7 years ago

@belozer by changing the max version in application.ini. But there are some issues with 53.

Bantam commented 6 years ago

This issue doesn't appear when using MOZ_HEADLESS=1 environment variable however Xvfb still has some advantages over headless with firefox as WebGL is currently disabled in headless mode according to https://bugzilla.mozilla.org/show_bug.cgi?id=1375585

I created a test docker container for this issue with the bare minimum here: https://github.com/Bantam/slimerjs-tester you can add the MOZ_HEADLESS=1 env to the start.sh file and run again to see that the issue is only occuring with Xvfb. Hope that helps narrow it down a little!