See summary.
Created attachment 30284 [details] patch
Comment on attachment 30284 [details] patch good.
Landed as http://trac.webkit.org/changeset/43665.