Bug 1392988 - Firefox 55.02 on macOS High Sierra cannot play AES encrypted video. r=Alex_Gaynor draft
authorHaik Aftandilian <haftandilian@mozilla.com>
Mon, 28 Aug 2017 19:06:07 -0700
changeset 655145 8c5078b336631e3254fcaaf6727dff281c840159
parent 655095 7ba54dea2924d2a8a5cbc3cf79512aa9b7f3ef31
child 728751 a3cde2761c5136fb7279a6b66d35f09b8abc531a
push id76783
push userhaftandilian@mozilla.com
push dateTue, 29 Aug 2017 17:43:39 +0000
reviewersAlex_Gaynor
bugs1392988
milestone57.0a1
Bug 1392988 - Firefox 55.02 on macOS High Sierra cannot play AES encrypted video. r=Alex_Gaynor Adds access to video encoding/decoding services when running on macOS 10.13 High Sierra. MozReview-Commit-ID: 6h4dZ6gkFtp
security/sandbox/mac/SandboxPolicies.h
--- a/security/sandbox/mac/SandboxPolicies.h
+++ b/security/sandbox/mac/SandboxPolicies.h
@@ -181,19 +181,23 @@ static const char contentSandboxRules[] 
     (ipc-posix-name-regex "^AudioIO"))
 
   (allow signal (target self))
 
   (allow mach-lookup
       (global-name "com.apple.audio.coreaudiod")
       (global-name "com.apple.audio.audiohald"))
 
-; bug 1376163
   (if (>= macosMinorVersion 13)
-    (allow mach-lookup (global-name "com.apple.audio.AudioComponentRegistrar")))
+    (allow mach-lookup
+      ; bug 1376163
+      (global-name "com.apple.audio.AudioComponentRegistrar")
+      ; bug 1392988
+      (xpc-service-name "com.apple.coremedia.videodecoder")
+      (xpc-service-name "com.apple.coremedia.videoencoder")))
 
 ; bug 1312273
   (if (= macosMinorVersion 9)
      (allow mach-lookup (global-name "com.apple.xpcd")))
 
   (allow iokit-open
      (iokit-user-client-class "IOHIDParamUserClient")
      (iokit-user-client-class "IOAudioEngineUserClient"))