change(ios): adjust the new reset-attempt mechanism

This commit is contained in:
Joshua Horton 2025-07-29 12:20:14 -05:00
parent 097f96c5bf
commit 94fadb8d06

View file

@ -238,12 +238,16 @@ class KeymanWebViewController: UIViewController {
self.userContentController.removeAllScriptMessageHandlers()
// Work around for #14163.
if let ivc = self.parent as? InputViewController,
ivc.isSystemKeyboard,
!ivc.hasFullAccess,
!firstLoad {
webViewWebContentProcessDidTerminate(webView!)
if !firstLoad {
if let ivc = self.parent as? InputViewController,
ivc.isSystemKeyboard,
!ivc.hasFullAccess {
// Prevent looping WebView resets!
firstLoad = true
webViewWebContentProcessDidTerminate(webView!)
}
}
firstLoad = false
self.userContentController.add(self, name: keymanWebViewName)
}