Title: [247701] trunk/Source
Revision
247701
Author
[email protected]
Date
2019-07-22 15:02:58 -0700 (Mon, 22 Jul 2019)

Log Message

Correct web audio-related crash in seed reports
https://bugs.webkit.org/show_bug.cgi?id=200009
<rdar://problem/51565203>

Reviewed by Per Arne Vollan.

Source/WebCore:

Update the 'createMix' method to do proper return value checking so that
we can clear the result of MTAudioProcessingTapCreate if the create operation
failed.

* platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
(WebCore::AudioSourceProviderAVFObjC::createMix):

Source/WebKit:

Revise the iOS sandbox to allow the WebContent process to communicate with
the 'com.apple.coremedia.audioprocessingtap.xpc' service, which is needed by
some types of WebAudio.

* WebProcess/com.apple.WebKit.WebContent.sb.in:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (247700 => 247701)


--- trunk/Source/WebCore/ChangeLog	2019-07-22 20:38:52 UTC (rev 247700)
+++ trunk/Source/WebCore/ChangeLog	2019-07-22 22:02:58 UTC (rev 247701)
@@ -1,3 +1,18 @@
+2019-07-22  Brent Fulgham  <[email protected]>
+
+        Correct web audio-related crash in seed reports
+        https://bugs.webkit.org/show_bug.cgi?id=200009
+        <rdar://problem/51565203>
+
+        Reviewed by Per Arne Vollan.
+
+        Update the 'createMix' method to do proper return value checking so that
+        we can clear the result of MTAudioProcessingTapCreate if the create operation
+        failed.
+
+        * platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
+        (WebCore::AudioSourceProviderAVFObjC::createMix):
+
 2019-07-22  Per Arne Vollan  <[email protected]>
 
         Prewarmed font does not find any matches

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm (247700 => 247701)


--- trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm	2019-07-22 20:38:52 UTC (rev 247700)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm	2019-07-22 22:02:58 UTC (rev 247701)
@@ -216,9 +216,13 @@
     };
 
     MTAudioProcessingTapRef tap = nullptr;
-    MTAudioProcessingTapCreate(kCFAllocatorDefault, &callbacks, 1, &tap);
+    OSStatus status = MTAudioProcessingTapCreate(kCFAllocatorDefault, &callbacks, 1, &tap);
     ASSERT(tap);
     ASSERT(m_tap == tap);
+    if (status != noErr) {
+        m_tap = nullptr;
+        return;
+    }
 
     RetainPtr<AVMutableAudioMixInputParameters> parameters = adoptNS([PAL::allocAVMutableAudioMixInputParametersInstance() init]);
     [parameters setAudioTapProcessor:m_tap.get()];

Modified: trunk/Source/WebKit/ChangeLog (247700 => 247701)


--- trunk/Source/WebKit/ChangeLog	2019-07-22 20:38:52 UTC (rev 247700)
+++ trunk/Source/WebKit/ChangeLog	2019-07-22 22:02:58 UTC (rev 247701)
@@ -1,3 +1,17 @@
+2019-07-22  Brent Fulgham  <[email protected]>
+
+        Correct web audio-related crash in seed reports
+        https://bugs.webkit.org/show_bug.cgi?id=200009
+        <rdar://problem/51565203>
+
+        Reviewed by Per Arne Vollan.
+
+        Revise the iOS sandbox to allow the WebContent process to communicate with
+        the 'com.apple.coremedia.audioprocessingtap.xpc' service, which is needed by
+        some types of WebAudio.
+
+        * WebProcess/com.apple.WebKit.WebContent.sb.in:
+
 2019-07-22  Dean Jackson  <[email protected]>
 
         WebKit SPI fix for [ClickyOrb] Audio continues playing after dismissing a video preview in Safari

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb (247700 => 247701)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb	2019-07-22 20:38:52 UTC (rev 247700)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb	2019-07-22 22:02:58 UTC (rev 247701)
@@ -424,7 +424,6 @@
     (global-name "com.apple.containermanagerd")
     (global-name "com.apple.coremedia.assetcacheinspector")
     (global-name "com.apple.coremedia.audiodeviceclock")
-    (global-name "com.apple.coremedia.audioprocessingtap.xpc")
     (global-name "com.apple.coremedia.endpointremotecontrolsession.xpc")
     (global-name "com.apple.coremedia.sandboxserver")
     (global-name "com.apple.coremedia.videocompositor")
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to