Update to work with 2.5.1.

Note that this breaks compatibility with older versions of WebKit.