The above test case crashes, which blocks the effort to make it work.
Created attachment 51674 [details] fix patch
It would be good to have a patch that fixes the bug entirely and not just partial fix, or alternatively find a test case that this patch fixes.
Comment on attachment 51674 [details] fix patch looks sane.
Comment on attachment 51674 [details] fix patch Clearing flags on attachment: 51674 Committed r56627: <http://trac.webkit.org/changeset/56627>
All reviewed patches have been landed. Closing bug.
Revision r56627 cherry-picked into qtwebkit-2.0 with commit 2342eb0ade5ebbd34db451760e5c6e55c0b47159