Skip to content

Commit

Permalink
fix crash on launch in WKWebView.valueForUndefinedKey(serverTrust) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx authored Jan 13, 2025
1 parent 68faef5 commit 7e324c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DuckDuckGo/Common/Extensions/WKWebViewExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ extension WKWebView {

// prevent exception if private API keys go missing
open override func value(forUndefinedKey key: String) -> Any? {
if key == #keyPath(serverTrust) {
return self.serverTrust
}
assertionFailure("valueForUndefinedKey: \(key)")
return nil
}
Expand Down

0 comments on commit 7e324c9

Please sign in to comment.