Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aec6b7b9922a9106ca4a4b9a946b39e321968354
https://github.com/WebKit/WebKit/commit/aec6b7b9922a9106ca4a4b9a946b39e321968354
Author: Vitor Roriz <[email protected]>
Date: 2024-04-04 (Thu, 04 Apr 2024)
Changed paths:
M Source/WebCore/platform/graphics/FontCustomPlatformData.h
M
Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp
M Source/WebKit/GPUProcess/GPUConnectionToWebProcess.h
M Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp
M Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.h
M Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.messages.in
M Source/WebKit/Scripts/webkit/messages.py
M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in
M Source/WebKit/Shared/GPUProcessPreferencesForWebProcess.h
M Source/WebKit/Shared/GPUProcessPreferencesForWebProcess.serialization.in
M Source/WebKit/UIProcess/API/APIPageConfiguration.cpp
M Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp
Log Message:
-----------
Preparation for FontCustomPlatformData should be deserialized with
SafeFontParser when in LDM (271976)
https://bugs.webkit.org/show_bug.cgi?id=271976
rdar://125729105
Reviewed by Alex Christensen.
FontCustomPlatformData deserialization requires font parsing and we should
use SafeFontParser if we are in lockdown mode (LDM).
We need some context to know if we are in LDM. For that reason,
the "CacheFontCustomPlatformData" message received by the GPUP
will no longer received a deserialized FontCustomPlatformData.
Instead, it will receive a FontCustomPlatformSerializedData and
the message handler, which knows if we are in LDM, will deserialize
FontCustomPlatformSerializedData.
This patch should not change behavior, it is only a preparation
for making the data path adequate to the future change.
* Source/WebCore/platform/graphics/FontCustomPlatformData.h:
* Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp:
(WebCore::FontCustomPlatformData::tryMakeFromSerializationData):
* Source/WebKit/GPUProcess/GPUConnectionToWebProcess.h:
(WebKit::GPUConnectionToWebProcess::isLockdownSafeFontParserEnabled const):
* Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:
(WebKit::RemoteRenderingBackend::cacheFontCustomPlatformData):
(WebKit::RemoteRenderingBackend::shoulUsedLockdownFontParser const):
* Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.h:
* Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.messages.in:
* Source/WebKit/Scripts/webkit/messages.py:
(headers_for_type):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:
* Source/WebKit/Shared/GPUProcessPreferencesForWebProcess.h:
* Source/WebKit/Shared/GPUProcessPreferencesForWebProcess.serialization.in:
* Source/WebKit/UIProcess/API/APIPageConfiguration.cpp:
(API::PageConfiguration::preferencesForGPUProcess const):
* Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::cacheFontCustomPlatformData):
Canonical link: https://commits.webkit.org/277060@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes