Patch forthcoming.
Created attachment 152956 [details] the patch
Comment on attachment 152956 [details] the patch r=me
Landed, with 4 new tests, in http://trac.webkit.org/changeset/123028