Skip to content

Commit

Permalink
[Cocoa] WebContent process needs to grant bootstrap extension for fon…
Browse files Browse the repository at this point in the history
…t server access

https://bugs.webkit.org/show_bug.cgi?id=258953
<rdar://108687466>

Reviewed by Per Arne Vollan.

The Sandbox extensions needed for dynamic fonts needs to enable the webkit mach
bootstrap extension, otherwise message filtering will block calls needed for
the feature to work properly.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::creationParameters):

Canonical link: https://commits.webkit.org/265850@main
  • Loading branch information
brentfulgham authored and Brent Fulgham committed Jul 7, 2023
1 parent d60ad3e commit 4ad2a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebKit/UIProcess/WebPageProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9329,7 +9329,7 @@ WebPageCreationParameters WebPageProxy::creationParameters(WebProcessProxy& proc

#if HAVE(STATIC_FONT_REGISTRY)
if (preferences().shouldAllowUserInstalledFonts())
parameters.fontMachExtensionHandles = process.fontdMachExtensionHandles(SandboxExtension::MachBootstrapOptions::DoNotEnableMachBootstrap);
parameters.fontMachExtensionHandles = process.fontdMachExtensionHandles(SandboxExtension::MachBootstrapOptions::EnableMachBootstrap);
#endif
#if HAVE(APP_ACCENT_COLORS)
parameters.accentColor = pageClient().accentColor();
Expand Down

0 comments on commit 4ad2a4a

Please sign in to comment.