seb-mac
seb-mac copied to clipboard
Crash when pasting twice in some JS editors in UIWebView.
Certain JavaScript editors (Quill) in the "classical" web view (UIWebView) may cause SEB to crash when an attempt is made to paste text twice using keyboard shortcuts on iPad.
The first paste action has been observed to make the editor lose focus. As a result, the following paste action has nowhere to go, which causes a paste: message to be sent to the UIWebView. Its (default) implementation of doesNotRecognizeSelector: throws an exception which isn't caught, causing the app to crash.
I have a fix ready where I simply override doesNotRecognizeSelector: in the existing UIWebView category to do nothing, except log.
This issue was observed in AAC mode on iPadOS 15.7.3. (The fix hasn't been tested in single app mode since I don't have the entitlement.)