⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 275669 in webkit


Ignore:
Timestamp:
Apr 8, 2021, 11:47:57 AM (5 years ago)
Author:
Brent Fulgham
Message:

[Cocoa] Temporarily retain some media services when GPU Process active
https://bugs.webkit.org/show_bug.cgi?id=224328
<rdar://problem/76370805>

Reviewed by Eric Carlson.

Testing of the GPU Process show that access to the CoreMedia routing service is still needed under
some use cases. To prevent user-facing impact, we will allow these connections while the underlying
issues are resolved.

  • UIProcess/WebPageProxy.cpp:

(WebKit::temporaryMachServices): Added.
(WebKit::WebPageProxy::creationParameters): Extend access to the set of temporaryMachServices when
the GPU Process is enabled.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r275663 r275669  
     12021-04-08  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Cocoa] Temporarily retain some media services when GPU Process active
     4        https://bugs.webkit.org/show_bug.cgi?id=224328
     5        <rdar://problem/76370805>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Testing of the GPU Process show that access to the CoreMedia routing service is still needed under
     10        some use cases. To prevent user-facing impact, we will allow these connections while the underlying
     11        issues are resolved.
     12
     13        * UIProcess/WebPageProxy.cpp:
     14        (WebKit::temporaryMachServices): Added.
     15        (WebKit::WebPageProxy::creationParameters): Extend access to the set of temporaryMachServices when
     16        the GPU Process is enabled.
     17
    1182021-04-08  Wenson Hsieh  <wenson_hsieh@apple.com>
    219
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r275614 r275669  
    77767776    return services;
    77777777}
     7778
     7779static const Vector<ASCIILiteral>& temporaryMachServices()
     7780{
     7781    static const auto services = makeNeverDestroyed(Vector<ASCIILiteral> {
     7782        "com.apple.coremedia.routingcontext.xpc"_s // Remove after <rdar://76403302> is fixed.
     7783    });
     7784    return services;
     7785}
    77787786#endif
    77797787
     
    78717879        parameters.mediaExtensionHandles = SandboxExtension::createHandlesForMachLookup(mediaRelatedMachServices(), WTF::nullopt);
    78727880        parameters.mediaIOKitExtensionHandles = SandboxExtension::createHandlesForIOKitClassExtensions(mediaRelatedIOKitClasses(), WTF::nullopt);
     7881    } else {
     7882        // FIXME(224327): Remove this else clause once <rdar://76403302> is fixed.
     7883        parameters.mediaExtensionHandles = SandboxExtension::createHandlesForMachLookup(temporaryMachServices(), WTF::nullopt);
    78737884    }
    78747885
Note: See TracChangeset for help on using the changeset viewer.