At the moment, headless isn't much different than running with xvfb (besides being more convenient than installing xvfb). For the first stage, performance hasn't been the priority, but we expect some improvements and we'll be starting some work on this soon.
Headless will run less of the platform specific widget code and I don't recommend using it for platform specific testing. It is targeted more at web developers and testing regular content pages. There definitely will be cases where regular pages will need to exercise code that would vary per platform (such as fullscreen), but hopefully we can provide good enough emulation in headless and work to have a consistent enough behavior across platforms that it won't matter. On Thu, Jun 15, 2017 at 8:57 AM, Ben Kelly <bke...@mozilla.com> wrote: > I typically use xvfb-run when executing tests locally. How does headless > mode differ? Does it just run faster, but at the cost not testing some > widget code? > > On Wed, Jun 14, 2017 at 7:51 PM, Brendan Dahl <bd...@mozilla.com> wrote: > >> Hello All, >> >> >> As of Firefox 55 I intend to ship headless Linux support (Firefox without >> a >> GUI and X11 server connection). Headless mode is enabled via the >> --headless >> command line flag for Firefox and does not affect Firefox when running in >> normal mode or on Windows and macOS >> >> >> >> For those unfamiliar with the project, the main goal of headless browsing >> is to make web developer workflow and testing with Firefox easier. There >> are currently two ways to interact with headless Firefox by using either >> SlimerJS or Marionette (WebDriver/Selenium). >> >> >> >> Testing: >> >> The Marionette test suite is now run in headless mode alongside the normal >> mode as a tier 2 test on try. There are also some basic xpcshell tests >> that >> use a simple headless browser. If the Marionette tests remain reliable, I >> intend to bump them up to tier 1 in a few weeks [1]. >> >> >> >> In the near future, I'll also be enabling headless mode on Windows and >> then >> will start work on macOS. We also are going to investigate some possible >> performance improvements for headless mode. >> >> >> >> If you run into any issues please file a bug in the new headless component >> [2]. >> >> >> >> More info: >> >> >> >> Meta bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1338004 >> >> Linux support: https://bugzilla.mozilla.org/show_bug.cgi?id=1356681 >> >> Windows support: https://bugzilla.mozilla.org/show_bug.cgi?id=1355150 >> >> MacOS support: https://bugzilla.mozilla.org/show_bug.cgi?id=1355147 >> >> [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1373029 >> >> [2]: >> https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&c >> omponent=Headless >> . >> >> >> >> Previous blog post on SlimerJS support: >> https://adriftwith.me/coding/2017/04/21/headless-slimerjs-with-firefox/ >> _______________________________________________ >> dev-platform mailing list >> dev-platform@lists.mozilla.org >> https://lists.mozilla.org/listinfo/dev-platform >> > > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform