Double tap followed by paste in UIWebView text input causes crash

Originator:stevenpatrickrichey
Number:rdar://23975255 Date Originated:12/21/2015
Status:Open Resolved:
Product:iOS Product Version:9.2
Classification:Crash Reproducible:Yes
 
Summary:
Double-tapping a text input field within a UIWebView after that text input field has lost focus, when double-tapping results in the selection of text, and then using the context menu to select "Cut" or "Paste" will then cause the application to crash.

Steps to Reproduce:
1. Create a new application
2. Add a UIWebView to the application
3. Set the contents of the web view to an HTML file containing a text and button input.
4. Launch the application.
5. Tap the text input field.
6. Add some text.
7. Tap the button. The text input field loses focus.
8. Double-tap the text within the text input field. The text is selected. A context menu appears.
9. Select "Cut" or "Paste" from the context menu.

Expected Results:
Correct clipboard response to selection.

Actual Results:
Application will crash. Stack trace is below.

2015-12-21 11:41:13.169 UIWebViewPaste[560:112478] -[UIWebView paste:]: unrecognized selector sent to instance 0x147520730
2015-12-21 11:41:13.171 UIWebViewPaste[560:112478] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIWebView paste:]: unrecognized selector sent to instance 0x147520730'
*** First throw call stack:
(0x182549900 0x181bb7f80 0x18255061c 0x18254d5b8 0x18245168c 0x1877ed36c 0x1877ec72c 0x182efe44c 0x1825015f4 0x182501298 0x1824fe9ac 0x18242d680 0x18393c088 0x1872a4d90 0x10002e328 0x181fce8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!