In pages where fields are focused from Javascript we should not display the keyboard, unless the user has already started interacting with the page. <rdar://problem/16238336>
Created attachment 230095 [details] Patch
Comment on attachment 230095 [details] Patch To be udpated.
Created attachment 230106 [details] Patch2 After discussing the first patch with Ben, I've implemented a different solution.
Comment on attachment 230106 [details] Patch2 View in context: https://bugs.webkit.org/attachment.cgi?id=230106&action=review > Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:317 > + RefPtr<Frame> oldFocusedFrame = m_page->focusController().focusedFrame(); > + RefPtr<Element> oldFocusedElement = oldFocusedFrame ? oldFocusedFrame->document()->focusedElement() : nullptr; > + m_userIsInteracting = true; I believe you will need the same logic in WebPage::dispatchTouchEvent().
Committed revision 167774.