Re:PhantomJS is a minimalistic, headless, WebKit-based, Java...
by andrewf on Thursday January 27, 2011 @03:26AM
(#2147115)
Strictly speaking all this needs is a working QtGui component in the Qt library.
There are a couple of ways to compile Qt to operate against an in-memory framebuffer rather than a "real" windowing environment, although neither is a well supported part of modern Qt:
http://qt.gitorious.org/qt/pages/GettingStartedWithLighthous...
While this cool, its really not that different from projects like http://code.google.com/p/wkhtmltopdf/.
If you really want a headless webkit browser you would need to write a new webkit port to a graphics library that doesn't require a windowing system (maybe cairo).