Changeset 295234 in webkit


Ignore:
Timestamp:
Jun 3, 2022 2:21:14 PM (2 years ago)
Author:
pvollan@apple.com
Message:

Enable HEIC decoding for all non-browser apps on macOS
https://bugs.webkit.org/show_bug.cgi?id=241271
<rdar://92983791>

Reviewed by Geoffrey Garen.

Enable HEIC decoding for all non-browser apps on macOS, since this capability is also needed for other apps besides Mail.
We do not want to enable it for Web browsers yet, since this currently requries an unconditional sandbox extension for
trustd.

  • Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:

(WebKit::WebProcessPool::platformInitializeWebProcess):

Canonical link: https://commits.webkit.org/251289@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r295213 r295234  
    394394#if HAVE(VIDEO_RESTRICTED_DECODING)
    395395#if PLATFORM(MAC)
    396     if (MacApplication::isAppleMail() || CocoaApplication::isWebkitTestRunner()) {
     396    if (!isFullWebBrowser()) {
    397397        if (auto trustdExtensionHandle = SandboxExtension::createHandleForMachLookup("com.apple.trustd.agent"_s, std::nullopt))
    398398            parameters.trustdExtensionHandle = WTFMove(*trustdExtensionHandle);
Note: See TracChangeset for help on using the changeset viewer.