[webkit-changes] [WebKit/WebKit] 871c39: Register asset fonts in the WebContent process

Per Arne Vollan noreply at github.com
Fri Feb 14 15:03:30 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 871c3979fbeae31c96726757e0a3cac75e64b5e4
      https://github.com/WebKit/WebKit/commit/871c3979fbeae31c96726757e0a3cac75e64b5e4
  Author: Per Arne Vollan <pvollan at apple.com>
  Date:   2025-02-14 (Fri, 14 Feb 2025)

  Changed paths:
    M Source/WebKit/Shared/AdditionalFonts.h
    A Source/WebKit/Shared/AdditionalFonts.mm
    M Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
    M Source/WebKit/UIProcess/WebProcessPool.h
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Register asset fonts in the WebContent process
https://bugs.webkit.org/show_bug.cgi?id=287657
rdar://144302444

Reviewed by Brady Eidson and Chris Dumez.

When access to MobileAsset is blocked in the WebContent process on iOS, we need to register the fonts in the WebContent process,
so that they are available to CoreText. The font family name is provided in a notification that we listen for in the UI process.

* Source/WebKit/Shared/AdditionalFonts.h:
* Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::registerNotificationObservers):
(WebKit::WebProcessPool::registerUserInstalledFonts):
(WebKit::WebProcessPool::registerAssetFonts):
(WebKit::WebProcessPool::unregisterNotificationObservers):
(WebKit::additionalFonts): Deleted.
* Source/WebKit/UIProcess/WebProcessPool.h:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

Canonical link: https://commits.webkit.org/290424@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