Make it work, add a basic test.
<rdar://problem/22750866>
Created attachment 261513 [details] Proposed patch.
Comment on attachment 261513 [details] Proposed patch. r=me.
Committed r189982: https://trac.webkit.org/r189982