I don't have a working patch yet, but I've filed a bug upstream: https://bugs.webkit.org/show_bug.cgi?id=238482