Bug 266598

Summary: Keyboard does not lose focus from iframe's search input
Product: WebKit Reporter: Gabriel Dantas <gabrielnsdantas>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: akeerthi, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   

Gabriel Dantas
Reported 2023-12-18 13:43:11 PST
When there is an iframe and inside of it there is a form containing an input with type 'search'. When this input is focused and some term is searched by using the 'search' key on the keyboard, the page will reload but the keyboard seems to never loses the focus from the input, it remains open with the search key enabled. Here is an example: https://68rcq6.csb.app/ This page has a search bar outside the iframe, this search bar behaves as expected (keyboard closes when it is reloaded). Inside the iframe, the wikipedia page is loaded, typing something in its search bar and using keyboard's search button will result in the described behavior. Here is the full code of this page: https://codesandbox.io/p/sandbox/ios-keyboard-68rcq6
Attachments
Radar WebKit Bug Importer
Comment 1 2023-12-25 13:44:13 PST
Note You need to log in before you can comment on or make changes to this bug.