On Fri, 2016-06-10 at 15:02 +0100, Richard W.M. Jones wrote:
What do we actually have to do to move apps that are using the
Webkit API to the new version? What code changes are needed?
Is there documentation for this?
There's no transition documentation. Basically, you want to make sure
your package builds when switching the pkg-config version in
configure.ac to webkit2gtk-4.0.
There is API documentation here:
Stable DOM (web process) API:
Deprecated API (what you are porting away from):
If your app doesn't use the DOM API, the port should be
straightforward. Your app will probably work once you manage to compile
it. Be sure to check if any signals you connect to have been renamed.
If your app does use the DOM API, you have more work as you need to
create a web process extension to access this API. You can use any form
of IPC to communicate between the UI process and the web process; D-Bus
is a good option. Documentation here:
Epiphany serves as a good (if complex) example of how to write a web
Hope that helps a bit... happy to answer more questions.