There's no need for this anymore, now that the keyboard doesn't come up and the selection doesn't appear after a drop.
Specifically, after r245778 and r245803.
Created attachment 370893 [details] Patch
Created attachment 370899 [details] Tweak API tests
Comment on attachment 370899 [details] Tweak API tests Clearing flags on attachment: 370899 Committed r245882: <https://trac.webkit.org/changeset/245882>
All reviewed patches have been landed. Closing bug.