[webkit-changes] [WebKit/WebKit] 4febe3: `-[WKWebViewConfiguration writingToolsBehavior]` n...
Aditya Keerthi
noreply at github.com
Mon Sep 30 17:39:47 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4febe34aaa67e4d9da2c4bf7e5fb3a70dcb861a5
https://github.com/WebKit/WebKit/commit/4febe34aaa67e4d9da2c4bf7e5fb3a70dcb861a5
Author: Aditya Keerthi <akeerthi at apple.com>
Date: 2024-09-30 (Mon, 30 Sep 2024)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.h
Log Message:
-----------
`-[WKWebViewConfiguration writingToolsBehavior]` not available when using a deployment target lower than iOS 18
https://bugs.webkit.org/show_bug.cgi?id=280645
rdar://136830527
Reviewed by Richard Robinson and Abrar Rahman Protyasha.
The property is unavailable when using a deployment target lower than iOS 18,
even when wrapping code in a `@available(iOS 18.1, *)` block.
This is due to incorrect use of the `MIN_REQUIRED` macro, which is based on the
deployment target. Consequently, the API is not found in the header, even though
the code in the `@available` block will only run on iOS 18.1+.
Fix by using `MAX_ALLOWED` which accounts for the actual SDK version.
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.h:
Canonical link: https://commits.webkit.org/284478@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list