[webkit-changes] [WebKit/WebKit] a202ce: Update additional TBD availability versions for ma...

Elliott Williams noreply at github.com
Wed Jan 25 19:52:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a202cedb8c21270fda2864b7a8810c3c344823fd
      https://github.com/WebKit/WebKit/commit/a202cedb8c21270fda2864b7a8810c3c344823fd
  Author: Elliott Williams <emw at apple.com>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKNavigationActionPrivate.h
    M Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferencesPrivate.h
    M Tools/Scripts/webkitpy/style/checkers/cpp.py

  Log Message:
  -----------
  Update additional TBD availability versions for macOS 13 and iOS 16
https://bugs.webkit.org/show_bug.cgi?id=251135

Reviewed by Jonathan Bedard and Alexey Proskuryakov.

Replace some TBD macros with the (now official) SDK versions they first
appeared in.

* Source/WebKit/UIProcess/API/Cocoa/WKNavigationActionPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferencesPrivate.h:

Change the wk_api_available style check to only consider the *major*
version number of an availability macro. This prevents us from having to
update webkitpy's VersionNameMap for every software update we want to
declare API/SPI for, though it of course means that someone could
accidentally declare an availiability version for an unreleased update.

* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_arguments_for_wk_api_available.max_major_version_for_platform):
(check_arguments_for_wk_api_available.check_version_string):
(check_arguments_for_wk_api_available.max_version_for_platform): Deleted.

Canonical link: https://commits.webkit.org/259406@main




More information about the webkit-changes mailing list