Patch forthcoming.
Created attachment 174270 [details] work in progress I'm going to work on a test case for this thingy.
Created attachment 174284 [details] the patch
Landed in http://trac.webkit.org/changeset/134695