WKWebView.load(_:mimeType:characterEncodingName:baseURL:) cannot load data from Microsoft Office files

Originator:Stefan.Kreminski
Number:rdar://45666105 Date Originated:30-Oct-2018 12:42 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:12.0
Classification:Other Bug Reproducible:Always
 
Summary:
When creating an NSData object out of a Microsoft Office file and loading it into a WKWebView the file is not displayed

Steps to Reproduce:
1. create an NSData object from a Microsoft Office office file
2. load the data into a WKWebView using WKWebView.load(_:mimeType:characterEncodingName:baseURL:)

Expected Results:
The web view displays the document

Actual Results:
The web view displays the raw content of the file

Version:
12.0

Notes:

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!