[webkit-changes] [WebKit/WebKit] a977e4: Rename: SafeFontParser is not a FallbackParser

Vitor Roriz noreply at github.com
Wed Sep 25 10:54:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a977e4e73bbfe375570bbf2ef67b00cc59f71a12
      https://github.com/WebKit/WebKit/commit/a977e4e73bbfe375570bbf2ef67b00cc59f71a12
  Author: Vitor Roriz <vitor.roriz at apple.com>
  Date:   2024-09-25 (Wed, 25 Sep 2024)

  Changed paths:
    M Source/WebCore/loader/cache/TrustedFonts.cpp
    M Source/WebCore/loader/cache/TrustedFonts.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp

  Log Message:
  -----------
  Rename: SafeFontParser is not a FallbackParser
https://bugs.webkit.org/show_bug.cgi?id=280339
rdar://136682879

Reviewed by Brent Fulgham.

Originally the Safe Font Parser was intended to be used
as a fallback parser for when there was a restriction
(imposed by lockdown mode) on dowloading font binaries
and a binary was not listed as trusted.

However, after [1], if we are restricted to download font
binaries and a binary is not trusted the font is denied
and we won't fallback. Therefore, the Safe Font Parser
is no longer used as a fallback parser.

The current patch renames the DownloadableBinaryFontTrustedTypes
value and update comments accordingly.

[1] https://commits.webkit.org/277717@main

* Source/WebCore/loader/cache/TrustedFonts.cpp:
(WebCore::fontBinaryParsingPolicy):
* Source/WebCore/loader/cache/TrustedFonts.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::adjustSettingsForLockdownMode):

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