WebKit macOS 11.3 to 12.0 API Differences

WKFoundation.h
Added #def WK_SWIFT_ASYNC_NAME
Added #def WK_SWIFT_ASYNC
Added #def WK_API_AVAILABLE
Added #def WK_API_UNAVAILABLE
Added #def WK_CLASS_AVAILABLE
Added #def WK_API_DEPRECATED
Added #def WK_API_DEPRECATED_WITH_REPLACEMENT
Added #def WK_CLASS_DEPRECATED_WITH_REPLACEMENT
WKPreferences.h
Modified WKPreferences.textInteractionEnabled
Declaration
From@property (nonatomic) BOOL textInteractionEnabled
To@property (nonatomic, getter=isTextInteractionEnabled) BOOL textInteractionEnabled

WKUIDelegate.h
Added WKPermissionDecision
Added WKPermissionDecisionPrompt
Added WKPermissionDecisionGrant
Added WKPermissionDecisionDeny
Added WKMediaCaptureType
Added WKMediaCaptureTypeCamera
Added WKMediaCaptureTypeMicrophone
Added WKMediaCaptureTypeCameraAndMicrophone
Added -[WKUIDelegate webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:]
Added -[WKUIDelegate webView:requestDeviceOrientationAndMotionPermissionForOrigin:initiatedByFrame:decisionHandler:]
WKWebView.h
Added WKMediaCaptureState
Added WKMediaCaptureStateNone
Added WKMediaCaptureStateActive
Added WKMediaCaptureStateMuted
Added -[WKWebView closeAllMediaPresentationsWithCompletionHandler:]
Added -[WKWebView pauseAllMediaPlaybackWithCompletionHandler:]
Added -[WKWebView setAllMediaPlaybackSuspended:completionHandler:]
Added -[WKWebView requestMediaPlaybackStateWithCompletionHandler:]
Added WKWebView.cameraCaptureState
Added WKWebView.microphoneCaptureState
Added -[WKWebView setCameraCaptureState:completionHandler:]
Added -[WKWebView setMicrophoneCaptureState:completionHandler:]
Added WKWebView.interactionState
Added -[WKWebView loadSimulatedRequest:response:responseData:]
Added -[WKWebView loadSimulatedRequest:withResponse:responseData:]
Added -[WKWebView loadFileRequest:allowingReadAccessToURL:]
Added -[WKWebView loadSimulatedRequest:responseHTMLString:]
Added -[WKWebView loadSimulatedRequest:withResponseHTMLString:]
Added WKWebView.themeColor
Added WKWebView.underPageBackgroundColor
Modified -[WKWebView closeAllMediaPresentations]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecateduse "closeAllMediaPresentationsWithCompletionHandler:"

Modified -[WKWebView pauseAllMediaPlayback:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecateduse "pauseAllMediaPlaybackWithCompletionHandler:"

Modified -[WKWebView resumeAllMediaPlayback:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecateduse "setAllMediaPlaybackSuspended:completionHandler:"

Modified -[WKWebView suspendAllMediaPlayback:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecateduse "setAllMediaPlaybackSuspended:completionHandler:"

Modified -[WKWebView requestMediaPlaybackState:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecateduse "requestMediaPlaybackStateWithCompletionHandler:"

WKWebViewConfiguration.h
Added WKWebViewConfiguration.upgradeKnownHostsToHTTPS