I haven't tested this code yet, but should work: https://github.com/tmpsantos/crosswalk/commit/7aed837e2d1985c5a2f0f91cbd4f94f1be23ab8b