WebKit iOS 13.6 to 14.0 API Differences
WKContentWorld.h
Added
WKContentWorld
Added
WKContentWorld.pageWorld
Added
WKContentWorld.defaultClientWorld
Added
+[WKContentWorld worldWithName:]
Added
WKContentWorld.name
WKError.h
Added
WKErrorJavaScriptInvalidFrameTarget
Added
WKErrorNavigationAppBoundDomain
Added
WKErrorJavaScriptAppBoundDomain
WKFindConfiguration.h
Added
WKFindConfiguration
Added
WKFindConfiguration.backwards
Added
WKFindConfiguration.caseSensitive
Added
WKFindConfiguration.wraps
WKFindResult.h
Added
WKFindResult
Added
WKFindResult.matchFound
WKNavigationDelegate.h
Added
-[WKNavigationDelegate webView:authenticationChallenge:shouldAllowDeprecatedTLS:]
WKPDFConfiguration.h
Added
WKPDFConfiguration
Added
WKPDFConfiguration.rect
WKPreferences.h
Removed
WKPreferences.javaEnabled
Removed
WKPreferences.plugInsEnabled
Modified
WKPreferences.javaScriptEnabled
Availability
Deprecation Message
From
Available
none
To
Deprecated
Use WKWebPagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
WKScriptMessage.h
Added
WKScriptMessage.world
WKScriptMessageHandlerWithReply.h
Added
WKScriptMessageHandlerWithReply
Added
-[WKScriptMessageHandlerWithReply userContentController:didReceiveScriptMessage:replyHandler:]
WKUserContentController.h
Added
-[WKUserContentController addScriptMessageHandler:contentWorld:name:]
Added
-[WKUserContentController addScriptMessageHandlerWithReply:contentWorld:name:]
Added
-[WKUserContentController removeScriptMessageHandlerForName:contentWorld:]
Added
-[WKUserContentController removeAllScriptMessageHandlersFromContentWorld:]
Added
-[WKUserContentController removeAllScriptMessageHandlers]
WKUserScript.h
Added
-[WKUserScript initWithSource:injectionTime:forMainFrameOnly:inContentWorld:]
WKWebpagePreferences.h
Added
WKWebpagePreferences.allowsContentJavaScript
WKWebView.h
Added
-[WKWebView evaluateJavaScript:inFrame:inContentWorld:completionHandler:]
Added
-[WKWebView callAsyncJavaScript:arguments:inFrame:inContentWorld:completionHandler:]
Added
-[WKWebView createPDFWithConfiguration:completionHandler:]
Added
-[WKWebView createWebArchiveDataWithCompletionHandler:]
Added
WKWebView.pageZoom
Added
-[WKWebView findString:withConfiguration:completionHandler:]
Added
WKWebView.mediaType
WKWebViewConfiguration.h
Added
WKWebViewConfiguration.limitsNavigationsToAppBoundDomains