Created attachment 433986 [details] Test project. According to the documentation, this api is available on iOS 8.0 to 14.0, but after specifying the version with @available attribute on xcode beta3, the following warning still appears when compiling. >'javaScriptEnabled' is deprecated: Use WKWebPagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis This problem does not exist on beta2. It seems to be a bug introduced by beta3. You can build the attached test project with Xcode 13 beta3 to reproduce.
<rdar://problem/80940334>
This was deprecated in r256715 and the macro was updated in r271813. I'm curious what the WKPreferences.h looked like after javaScriptEnabled in beta2 and beta3.
Created attachment 434033 [details] Patch v1
https://trac.webkit.org/changeset/279089/webkit is where we think we got this wrong, for reference.
Committed r280202 (239890@main): <https://commits.webkit.org/239890@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434033 [details].