UIWebview does not evaluate content injection in iOS 11.3

Originator:hansknoechel92
Number:rdar://37423632 Date Originated:2018-02-10
Status:Open Resolved:
Product:iOS Product Version:11.3
Classification:Bug Reproducible:Always
 
Area:
UIKit

Summary: When using iOS 11.3 Beta 2, content injections inside UIWebView do not work anymore. This worked in all previous versions of iOS including iOS 11.x and represents a serious breaking change to developers using the UIWebView in production. 

Steps to Reproduce:
1. Create a UIWebView instance with a local html file
2. Inject a local variable from your native project
3. Trigger the local variable and evaluate the result in your native project

Expected Results:
The property should be injected properly.

Actual Results:
The property does not get injected properly and cannot be triggered anymore.

Version/Build: 11.3 B2


Configuration: Xcode 9.2, macOS 10.13.3 Beta (17D25b)

Attachment: https://www.dropbox.com/s/h8mwrc9wzbw6oa9/test_webview.zip?dl=1

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!