<rdar://problem/33283179> WKWebView.h says that the class is key-value observing (KVO) compliant for the serverTrust property, and the implementation correctly reports changes to the property’s value, but it fails to make the property key value coding-complaint, so trying to get it using -valueForKey: either directly or as a side-effect of using specifying NSKeyValueObservingOptionNew or NSKeyValueObservingOptionOld results in an exception. Patch forthcoming.
Created attachment 348719 [details] Override -valueForUndefinedKey: to handle "serverTrust"
Fixed in <https://trac.webkit.org/r235584>.
Comment on attachment 348719 [details] Override -valueForUndefinedKey: to handle "serverTrust" View in context: https://bugs.webkit.org/attachment.cgi?id=348719&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:823 > +- (id)valueForUndefinedKey:(NSString *)key { { on new line please.
(In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 348719 [details] > Override -valueForUndefinedKey: to handle "serverTrust" > > View in context: > https://bugs.webkit.org/attachment.cgi?id=348719&action=review > > > Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:823 > > +- (id)valueForUndefinedKey:(NSString *)key { > > { on new line please. Fixed in r253216.