Steps to reproduce:
1. Attach hardware keyboard.
2. Visit <data:text/html,<input><button>Tap</button>>.
3. Press any key, say a.
4. Focus the field, type something that would be autocorrected, say djn.
5. Once the autocorrection highlight appears, tap the button.
Then the autocorrection highlight should hide. But it remains visible.
Created attachment 374148 [details]
For the bots
Patch no good. Already nilled the inputDelegate
Created attachment 374160 [details]
For the Bots
Created attachment 374348 [details]
Alternative for the bots
Created attachment 374349 [details]
Alt for the bots
Created attachment 374421 [details]
It is not possible to write a reproducible test case for this change at the moment because the Input Manager learns to ignore misspelling when a correction is repeatedly ignored/rejected (say, as a result of running a test more than once) and these learnings persist across Simulator reboots. There is no way to tell the Input Manager to unlearn a misspelling as far as I can tell.
Comment on attachment 374421 [details]
Clearing flags on attachment: 374421
Committed r247653: <https://trac.webkit.org/changeset/247653>
All reviewed patches have been landed. Closing bug.
(In reply to Daniel Bates from comment #8)
> Comment on attachment 374421 [details]
> Clearing flags on attachment: 374421
> Committed r247653: <https://trac.webkit.org/changeset/247653>
Wow! This is a bad merge. Svn-apply couldn't find -_didCommitLoadForMainFrame and patch -clearSelection instead
Fixed bad merge in <https://trac.webkit.org/changeset/247687>