Created attachment 364836 [details] Test Seen on iPad. Steps to reproduce: The following assume you have a hardware keyboard attached. 1. Open the attached test case. 2. Follow the instructions. The test fails following <https://trac.webkit.org/changeset/242173/> (bug #195118). Prior to the change, it passed. Notes: When the bug occurs the WKContentView is *NOT* the first responder. If you then tap somewhere on page we make the WKContentView first responder and the popover opens!
<rdar://problem/48937037>
<rdar://problem/48937038>
This is because of my new first responder restriction when determining whether to allow programmatic focus to present an input view. Namely, after r242173, when WKContentView is not first responder, we’ll no longer allow programmatic focus to show an input view (this is to prevent web content from stealing focus away from page chrome using programmatic focus). Need to think more about what our policy should be in this scenario...any change that would prevent users from being able to switch tabs or type in the unified field and navigate away in this case is a non-starter.
I will fix this issue in the patch for bug #196272. Keeping this bug open to remind myself to add a test for this bug.