Fix for 10.10 WebKit2

Don't use block-based API.
Removed in https://trac.webkit.org/changeset/159059