A similar fix of bug 61314 is needed in GTK.
Created attachment 94949 [details] proposed patch
Comment on attachment 94949 [details] proposed patch Makes sense to me.
Comment on attachment 94949 [details] proposed patch This patch is not needed anymore since http://trac.webkit.org/changeset/87366