Changeset 261865 in webkit


Ignore:
Timestamp:
May 19, 2020 9:21:39 AM (4 years ago)
Author:
Brent Fulgham
Message:

REGRESSION(r243149): createMediaElementSource not working
https://bugs.webkit.org/show_bug.cgi?id=211394
<rdar://problem/62866132>

Reviewed by Per Arne Vollan.

I removed access to some Audio services in r243149, because we believed they were already
blocked by a global deny command. However, Sandbox rules override generic rules with
explicit rules, so the imported sandbox rules were not being blocked.

This patch re-adds the rules needed to support these audio routines on iOS hardware.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
  • UIProcess/Cocoa/WebProcessPoolCocoa.mm:

(WebKit::mediaRelatedMachServices):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r261860 r261865  
     12020-05-19  Brent Fulgham  <bfulgham@apple.com>
     2
     3        REGRESSION(r243149): createMediaElementSource not working
     4        https://bugs.webkit.org/show_bug.cgi?id=211394
     5        <rdar://problem/62866132>
     6
     7        Reviewed by Per Arne Vollan.
     8
     9        I removed access to some Audio services in r243149, because we believed they were already
     10        blocked by a global deny command. However, Sandbox rules override generic rules with
     11        explicit rules, so the imported sandbox rules were not being blocked.
     12
     13        This patch re-adds the rules needed to support these audio routines on iOS hardware.
     14
     15        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     16        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
     17        (WebKit::mediaRelatedMachServices):
     18
    1192020-05-19  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r261696 r261865  
    956956
    957957            ;;; FIXME(207716): The following should be removed when the GPU process is complete
    958             "com.apple.airplay.apsynccontroller.xpc" "com.apple.audio.AURemoteIOServer" "com.apple.audio.AudioComponentRegistrar"
    959             "com.apple.audio.AudioComponentRegistrar" "com.apple.audio.AudioSession" "com.apple.coremedia.admin" "com.apple.coremedia.asset.xpc"
     958            "com.apple.airplay.apsynccontroller.xpc" "com.apple.audio.AURemoteIOServer" "com.apple.audio.AudioComponentPrefs" "com.apple.audio.AudioComponentRegistrar"
     959            "com.apple.audio.AudioQueueServer" "com.apple.audio.AudioSession" "com.apple.coremedia.admin" "com.apple.coremedia.asset.xpc"
    960960            "com.apple.coremedia.assetimagegenerator.xpc" "com.apple.coremedia.audiodeviceclock.xpc" "com.apple.coremedia.audioprocessingtap.xpc"
    961961            "com.apple.coremedia.capturesession" "com.apple.coremedia.capturesource" "com.apple.coremedia.compressionsession" "com.apple.coremedia.cpe.xpc"
  • trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r261624 r261865  
    217217    ASSERT(isMainThread());
    218218    static const auto services = makeNeverDestroyed(Vector<String> {
    219         "com.apple.audio.AudioComponentRegistrar", "com.apple.coremedia.endpoint.xpc",
     219        "com.apple.audio.AudioComponentPrefs", "com.apple.audio.AudioComponentRegistrar",
     220        "com.apple.audio.AudioQueueServer", "com.apple.coremedia.endpoint.xpc",
    220221        "com.apple.coremedia.routediscoverer.xpc", "com.apple.coremedia.routingcontext.xpc",
    221222        "com.apple.coremedia.volumecontroller.xpc", "com.apple.accessibility.mediaaccessibilityd",
Note: See TracChangeset for help on using the changeset viewer.