This code should be covered sufficiently by wpt tests.