Work around Webkit wrapping issue

Issue #2901