Custom NSURLProtocol cannot handle requests from WKWebView
Originator: | kbongort | ||
Number: | rdar://17240707 | Date Originated: | 09-Jun-2014 |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | 8.0 |
Classification: | Reproducible: | Always |
Summary: It was possible to install a custom NSURLProtocol to handle requests from UIWebView. This is no longer possible with WKWebView. Steps to Reproduce: 1. Create and register a custom NSURLProtocol subclass that handles all requests. 2. Create a WKWebView and load a request. Expected Results: The custom NSURLProtocol subclass should receive a +canInitWithRequest: message, and then an instance should be created and initialized with -initWithRequest:cachedResponse:client:. Actual Results: The NSURLProtocol subclass *does* receive the +canInitWithRequest: message, but is never instantiated. Version: 8.0 Configuration: Any iOS device or Simulator
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!