Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bf2bd2f72c62477542047d20e68383dbe6e9a0b4
      
https://github.com/WebKit/WebKit/commit/bf2bd2f72c62477542047d20e68383dbe6e9a0b4
  Author: Ronan Turner <[email protected]>
  Date:   2025-12-08 (Mon, 08 Dec 2025)

  Changed paths:
    M Source/WebCore/Configurations/AllowedSPI.toml
    M Source/WebCore/PAL/pal/spi/cf/CoreTextSPI.h
    M 
Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp
    M 
WebKitLibraries/SDKs/appletvos18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/appletvos26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/appletvsimulator18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/appletvsimulator26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/iphoneos18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/iphoneos26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/iphonesimulator18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/iphonesimulator26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/watchos11.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/watchos26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/watchsimulator11.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/watchsimulator26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/xros2.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/xros26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/xrsimulator2.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd
    M 
WebKitLibraries/SDKs/xrsimulator26.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd

  Log Message:
  -----------
  Perform parsing in SafeFontParser when requested.
https://bugs.webkit.org/show_bug.cgi?id=299600
rdar://160955739

Reviewed by Vitor Roriz and Brent Fulgham.

We currently use the memory safe variant of FontParser - SafeFontParser,
when requested (e.g. in Lockdown Mode or when force enabled). This uses
the memory safe SPI variant of FPFontCreateFontsFromData.

However, the actual font parsing itself still occurs via the regular
FontParser code, even on the memory safe path. This switches this
behaviour to now use the SafeFontParser for parsing as well.

* Source/WebCore/Configurations/AllowedSPI.toml:
* Source/WebCore/PAL/pal/spi/cf/CoreTextSPI.h:
* Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp:
(WebCore::extractFontCustomPlatformDataShared):
(WebCore::extractFontCustomPlatformDataSystemParser):
(WebCore::extractFontCustomPlatformDataMemorySafe):
(WebCore::FontCustomPlatformData::create):
(WebCore::FontCustomPlatformData::createMemorySafe):
(WebCore::extractFontCustomPlatformData): Deleted.
* 
WebKitLibraries/SDKs/appletvos18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/appletvsimulator18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/iphoneos18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/iphonesimulator18.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/watchos11.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/watchsimulator11.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/xros2.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:
* 
WebKitLibraries/SDKs/xrsimulator2.0-additions.sdk/System/Library/PrivateFrameworks/FontServices.framework/libFontParser.tbd:

Originally-landed-as: 297297.486@safari-7622-branch (bc123e1d6748). 
rdar://164211967
Canonical link: https://commits.webkit.org/304140@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to