The tests should cover this regression: https://bugs.webkit.org/show_bug.cgi?id=38507 See this comment, in particular, for thoughts on how to test: https://bugs.webkit.org/show_bug.cgi?id=38507#c6