<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[285479] trunk/Source/WebKit</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/285479">285479</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2021-11-08 20:23:23 -0800 (Mon, 08 Nov 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, reverting <a href="http://trac.webkit.org/projects/webkit/changeset/285432">r285432</a>.
https://bugs.webkit.org/show_bug.cgi?id=232864

Introduced audio capture regression

Reverted changeset:

"[macOS][GPUP] Remove access in sandbox to
com.apple.audio.AudioComponentRegistrar"
https://bugs.webkit.org/show_bug.cgi?id=231694
https://commits.webkit.org/<a href="http://trac.webkit.org/projects/webkit/changeset/285432">r285432</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitGPUProcessGPUProcessh">trunk/Source/WebKit/GPUProcess/GPUProcess.h</a></li>
<li><a href="#trunkSourceWebKitGPUProcessGPUProcessmessagesin">trunk/Source/WebKit/GPUProcess/GPUProcess.messages.in</a></li>
<li><a href="#trunkSourceWebKitGPUProcesscocoaGPUProcessCocoamm">trunk/Source/WebKit/GPUProcess/cocoa/GPUProcessCocoa.mm</a></li>
<li><a href="#trunkSourceWebKitGPUProcessmaccomappleWebKitGPUProcesssbin">trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in</a></li>
<li><a href="#trunkSourceWebKitUIProcessCocoaWebProcessProxyCocoamm">trunk/Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm</a></li>
<li><a href="#trunkSourceWebKitUIProcessGPUGPUProcessProxycpp">trunk/Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKitUIProcessWebProcessPoolcpp">trunk/Source/WebKit/UIProcess/WebProcessPool.cpp</a></li>
<li><a href="#trunkSourceWebKitUIProcessWebProcessProxyh">trunk/Source/WebKit/UIProcess/WebProcessProxy.h</a></li>
<li><a href="#trunkSourceWebKitWebAuthnProcessmaccomappleWebKitWebAuthnProcesssbin">trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in</a></li>
<li><a href="#trunkSourceWebKitWebKitxcodeprojprojectpbxproj">trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKitSharedCocoaAudioComponentRegistrationcpp">trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.cpp</a></li>
<li><a href="#trunkSourceWebKitSharedCocoaAudioComponentRegistrationh">trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog    2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/ChangeLog       2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2021-11-08  Commit Queue  <commit-queue@webkit.org>
+
+        Unreviewed, reverting r285432.
+        https://bugs.webkit.org/show_bug.cgi?id=232864
+
+        Introduced audio capture regression
+
+        Reverted changeset:
+
+        "[macOS][GPUP] Remove access in sandbox to
+        com.apple.audio.AudioComponentRegistrar"
+        https://bugs.webkit.org/show_bug.cgi?id=231694
+        https://commits.webkit.org/r285432
+
</ins><span class="cx"> 2021-11-08  Wenson Hsieh  <wenson_hsieh@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Make it possible to toggle several experimental media features when GPU Process is enabled
</span></span></pre></div>
<a id="trunkSourceWebKitGPUProcessGPUProcessh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/GPUProcess/GPUProcess.h (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/GPUProcess/GPUProcess.h      2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/GPUProcess/GPUProcess.h 2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> #if ENABLE(GPU_PROCESS)
</span><span class="cx"> 
</span><span class="cx"> #include "AuxiliaryProcess.h"
</span><del>-#include "DataReference.h"
</del><span class="cx"> #include "SandboxExtension.h"
</span><span class="cx"> #include "WebPageProxyIdentifier.h"
</span><span class="cx"> #include <WebCore/LibWebRTCEnumTraits.h>
</span><span class="lines">@@ -110,10 +109,6 @@
</span><span class="cx"> 
</span><span class="cx">     const String& applicationVisibleName() const { return m_applicationVisibleName; }
</span><span class="cx"> 
</span><del>-#if PLATFORM(COCOA)
-    void consumeAudioComponentRegistrations(const IPC::DataReference&);
-#endif
-
</del><span class="cx">     void webProcessConnectionCountForTesting(CompletionHandler<void(uint64_t)>&&);
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebKitGPUProcessGPUProcessmessagesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/GPUProcess/GPUProcess.messages.in (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/GPUProcess/GPUProcess.messages.in    2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/GPUProcess/GPUProcess.messages.in       2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -76,10 +76,6 @@
</span><span class="cx">     NotifyPreferencesChanged(String domain, String key, std::optional<String> encodedValue)
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if PLATFORM(COCOA)
-    ConsumeAudioComponentRegistrations(IPC::SharedBufferDataReference registrationData)
-#endif
-
</del><span class="cx">     WebProcessConnectionCountForTesting() -> (uint64_t count) Async
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitGPUProcesscocoaGPUProcessCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/GPUProcess/cocoa/GPUProcessCocoa.mm (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/GPUProcess/cocoa/GPUProcessCocoa.mm  2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/GPUProcess/cocoa/GPUProcessCocoa.mm     2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(GPU_PROCESS) && PLATFORM(COCOA)
</span><span class="cx"> 
</span><del>-#import "AudioComponentRegistration.h"
</del><span class="cx"> #import "GPUConnectionToWebProcess.h"
</span><span class="cx"> #import "RemoteRenderingBackend.h"
</span><span class="cx"> #import <wtf/RetainPtr.h>
</span><span class="lines">@@ -76,11 +75,6 @@
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(CFPREFS_DIRECT_MODE)
</span><span class="cx"> 
</span><del>-void GPUProcess::consumeAudioComponentRegistrations(const IPC::DataReference& data)
-{
-    WebKit::consumeAudioComponentRegistrations(data);
-}
-
</del><span class="cx"> } // namespace WebKit
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(GPU_PROCESS) && PLATFORM(COCOA)
</span></span></pre></div>
<a id="trunkSourceWebKitGPUProcessmaccomappleWebKitGPUProcesssbin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in     2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in        2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -687,10 +687,8 @@
</span><span class="cx"> (allow ipc-posix-shm-read* ipc-posix-shm-write-data (with telemetry)
</span><span class="cx">     (ipc-posix-name-prefix "AudioIO"))
</span><span class="cx"> 
</span><del>-#if __MAC_OS_X_VERSION_MIN_REQUIRED < 120000
</del><span class="cx"> (allow mach-lookup
</span><span class="cx">     (global-name "com.apple.audio.AudioComponentRegistrar"))
</span><del>-#endif
</del><span class="cx"> 
</span><span class="cx"> #if !ENABLE(CFPREFS_DIRECT_MODE)
</span><span class="cx"> (allow mach-lookup (with telemetry)
</span></span></pre></div>
<a id="trunkSourceWebKitSharedCocoaAudioComponentRegistrationcpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.cpp (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.cpp  2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.cpp     2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -1,50 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "AudioComponentRegistration.h"
-
-#include "Logging.h"
-
-namespace WebKit {
-
-void consumeAudioComponentRegistrations(const IPC::DataReference& data)
-{
-    if (!PAL::isAudioToolboxCoreFrameworkAvailable() || !PAL::canLoad_AudioToolboxCore_AudioComponentApplyServerRegistrations())
-        return;
-
-    auto registrations = adoptCF(CFDataCreate(kCFAllocatorDefault, data.data(), data.size()));
-    if (!registrations)
-        return;
-
-    auto err = PAL::AudioComponentApplyServerRegistrations(registrations.get());
-    if (noErr == err)
-        return;
-    
-    RELEASE_LOG_ERROR(Process, "Could not apply AudioComponent registrations, err(%ld)", static_cast<long>(err));
-}
-
-} // namespace WebKit
-
</del></span></pre></div>
<a id="trunkSourceWebKitSharedCocoaAudioComponentRegistrationh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.h (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.h    2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/Shared/Cocoa/AudioComponentRegistration.h       2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -1,60 +0,0 @@
</span><del>-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#import "AuxiliaryProcessProxy.h"
-#import "DataReference.h"
-#import <WebCore/WebMAudioUtilitiesCocoa.h>
-#import <wtf/BlockPtr.h>
-#import <pal/cf/AudioToolboxSoftLink.h>
-
-namespace WebKit {
-
-template<typename T> void sendAudioComponentRegistrations(AuxiliaryProcessProxy& process)
-{
-    if (!PAL::isAudioToolboxCoreFrameworkAvailable() || !PAL::canLoad_AudioToolboxCore_AudioComponentFetchServerRegistrations())
-        return;
-
-    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), makeBlockPtr([weakThis = WeakPtr { process }] () mutable {
-        CFDataRef registrations { nullptr };
-
-        WebCore::registerOpusDecoderIfNeeded();
-        WebCore::registerVorbisDecoderIfNeeded();
-        if (noErr != PAL::AudioComponentFetchServerRegistrations(&registrations) || !registrations)
-            return;
-
-        RunLoop::main().dispatch([weakThis = WTFMove(weakThis), registrations = adoptCF(registrations)] () mutable {
-            if (!weakThis)
-                return;
-            auto registrationData = WebCore::SharedBuffer::create(registrations.get());
-            weakThis->send(T({ registrationData }), 0);
-        });
-    }).get());
-}
-
-void consumeAudioComponentRegistrations(const IPC::DataReference&);
-
-} // namespace WebKit
</del></span></pre></div>
<a id="trunkSourceWebKitUIProcessCocoaWebProcessProxyCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm      2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm 2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -39,6 +39,7 @@
</span><span class="cx"> #import "WebProcessMessages.h"
</span><span class="cx"> #import "WebProcessPool.h"
</span><span class="cx"> #import <WebCore/RuntimeApplicationChecks.h>
</span><ins>+#import <WebCore/WebMAudioUtilitiesCocoa.h>
</ins><span class="cx"> #import <sys/sysctl.h>
</span><span class="cx"> #import <wtf/NeverDestroyed.h>
</span><span class="cx"> #import <wtf/Scope.h>
</span><span class="lines">@@ -63,6 +64,8 @@
</span><span class="cx"> #include "TCCSoftLink.h"
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+#import <pal/cf/AudioToolboxSoftLink.h>
+
</ins><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> static const Seconds unexpectedActivityDuration = 10_s;
</span><span class="lines">@@ -286,6 +289,31 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+void WebProcessProxy::sendAudioComponentRegistrations()
+{
+    using namespace PAL;
+
+    if (!PAL::isAudioToolboxCoreFrameworkAvailable() || !PAL::canLoad_AudioToolboxCore_AudioComponentFetchServerRegistrations())
+        return;
+
+    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), [weakThis = WeakPtr { *this }] () mutable {
+        CFDataRef registrations { nullptr };
+
+        WebCore::registerOpusDecoderIfNeeded();
+        WebCore::registerVorbisDecoderIfNeeded();
+        if (noErr != AudioComponentFetchServerRegistrations(&registrations) || !registrations)
+            return;
+
+        RunLoop::main().dispatch([weakThis = WTFMove(weakThis), registrations = adoptCF(registrations)] () mutable {
+            if (!weakThis)
+                return;
+
+            auto registrationData = WebCore::SharedBuffer::create(registrations.get());
+            weakThis->send(Messages::WebProcess::ConsumeAudioComponentRegistrations({ registrationData }), 0);
+        });
+    });
+}
+
</ins><span class="cx"> bool WebProcessProxy::messageSourceIsValidWebContentProcess()
</span><span class="cx"> {
</span><span class="cx">     if (!hasConnection()) {
</span></span></pre></div>
<a id="trunkSourceWebKitUIProcessGPUGPUProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp    2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp       2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -63,10 +63,6 @@
</span><span class="cx"> #include <wtf/FileSystem.h>
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if PLATFORM(COCOA)
-#include "AudioComponentRegistration.h"
-#endif
-
</del><span class="cx"> #define MESSAGE_CHECK(assertion) MESSAGE_CHECK_BASE(assertion, this->connection())
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="lines">@@ -452,8 +448,6 @@
</span><span class="cx">     if (!store)
</span><span class="cx">         return;
</span><span class="cx">     m_hasSentNetworkProcessXPCEndpoint = store->sendNetworkProcessXPCEndpointToProcess(*this);
</span><del>-
-    sendAudioComponentRegistrations<Messages::GPUProcess::ConsumeAudioComponentRegistrations>(*this);
</del><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitUIProcessWebProcessPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/UIProcess/WebProcessPool.cpp (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/UIProcess/WebProcessPool.cpp 2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/UIProcess/WebProcessPool.cpp    2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -130,7 +130,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(COCOA)
</span><del>-#include "AudioComponentRegistration.h"
</del><span class="cx"> #include "DefaultWebBrowserChecks.h"
</span><span class="cx"> #include <WebCore/GameControllerGamepadProvider.h>
</span><span class="cx"> #include <WebCore/HIDGamepadProvider.h>
</span><span class="lines">@@ -870,7 +869,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(COCOA)
</span><del>-    sendAudioComponentRegistrations<Messages::WebProcess::ConsumeAudioComponentRegistrations>(process);
</del><ins>+    process.sendAudioComponentRegistrations();
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span></span></pre></div>
<a id="trunkSourceWebKitUIProcessWebProcessProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/UIProcess/WebProcessProxy.h (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/UIProcess/WebProcessProxy.h  2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/UIProcess/WebProcessProxy.h     2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -338,6 +338,8 @@
</span><span class="cx">     bool hasAudioCaptureExtension() const { return m_mediaCaptureSandboxExtensions & Audio; }
</span><span class="cx">     void grantAudioCaptureExtension() { m_mediaCaptureSandboxExtensions |= Audio; }
</span><span class="cx">     void revokeAudioCaptureExtension() { m_mediaCaptureSandboxExtensions &= ~Audio; }
</span><ins>+
+    void sendAudioComponentRegistrations();
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(REMOTE_INSPECTOR) && PLATFORM(COCOA)
</span></span></pre></div>
<a id="trunkSourceWebKitWebAuthnProcessmaccomappleWebKitWebAuthnProcesssbin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in   2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in      2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -327,6 +327,7 @@
</span><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx">     (with report) (with telemetry)
</span><span class="cx"> #endif
</span><ins>+    (global-name "com.apple.audio.AudioComponentRegistrar")
</ins><span class="cx">     (global-name "com.apple.awdd")
</span><span class="cx"> #if !ENABLE(CFPREFS_DIRECT_MODE)
</span><span class="cx">     (global-name "com.apple.cfprefsd.agent")
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (285478 => 285479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj     2021-11-09 02:26:15 UTC (rev 285478)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2021-11-09 04:23:23 UTC (rev 285479)
</span><span class="lines">@@ -1941,8 +1941,6 @@
</span><span class="cx">          E38A1FC023A551BF00D2374F /* UserInterfaceIdiom.mm in Sources */ = {isa = PBXBuildFile; fileRef = E38A1FBF23A551BF00D2374F /* UserInterfaceIdiom.mm */; };
</span><span class="cx">          E39628DD23960CC600658ECD /* WebDeviceOrientationUpdateProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = E39628DB23960CC500658ECD /* WebDeviceOrientationUpdateProvider.h */; };
</span><span class="cx">          E39628DE23960CC600658ECD /* WebDeviceOrientationUpdateProvider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E39628DC23960CC600658ECD /* WebDeviceOrientationUpdateProvider.cpp */; };
</span><del>-               E3C2396D2721C9C200E37537 /* AudioComponentRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E3C2396B2721C9C100E37537 /* AudioComponentRegistration.cpp */; };
-               E3C2396E2721C9C200E37537 /* AudioComponentRegistration.h in Headers */ = {isa = PBXBuildFile; fileRef = E3C2396C2721C9C200E37537 /* AudioComponentRegistration.h */; };
</del><span class="cx">           E3CAAA442413279900CED2E2 /* AccessibilitySupportSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = E3CAAA432413278A00CED2E2 /* AccessibilitySupportSPI.h */; };
</span><span class="cx">          E413F59D1AC1ADC400345360 /* NetworkCacheEntry.h in Headers */ = {isa = PBXBuildFile; fileRef = E413F59B1AC1ADB600345360 /* NetworkCacheEntry.h */; };
</span><span class="cx">          E42E06101AA7523B00B11699 /* NetworkCacheIOChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = E42E060B1AA7440D00B11699 /* NetworkCacheIOChannel.h */; };
</span><span class="lines">@@ -5862,8 +5860,6 @@
</span><span class="cx">          E3A86FBC26958E330059264D /* WebCaptionPreferencesDelegate.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebCaptionPreferencesDelegate.cpp; sourceTree = "<group>"; };
</span><span class="cx">          E3BCE877267252120011D8DB /* AccessibilityPreferences.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AccessibilityPreferences.cpp; sourceTree = "<group>"; };
</span><span class="cx">          E3BCE878267252120011D8DB /* AccessibilityPreferences.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AccessibilityPreferences.h; sourceTree = "<group>"; };
</span><del>-               E3C2396B2721C9C100E37537 /* AudioComponentRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioComponentRegistration.cpp; sourceTree = "<group>"; };
-               E3C2396C2721C9C200E37537 /* AudioComponentRegistration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioComponentRegistration.h; sourceTree = "<group>"; };
</del><span class="cx">           E3CAAA432413278A00CED2E2 /* AccessibilitySupportSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilitySupportSPI.h; sourceTree = "<group>"; };
</span><span class="cx">          E3EFB02C2550617C003C2F96 /* WebSystemSoundDelegate.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WebSystemSoundDelegate.cpp; sourceTree = "<group>"; };
</span><span class="cx">          E3EFB02D2550617C003C2F96 /* WebSystemSoundDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebSystemSoundDelegate.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -8154,8 +8150,6 @@
</span><span class="cx">                          378E1A3B181ED6FF0031007A /* APIObject.mm */,
</span><span class="cx">                          A175C44921AA3170000037D0 /* ArgumentCodersCocoa.h */,
</span><span class="cx">                          A175C44B21AA331B000037D0 /* ArgumentCodersCocoa.mm */,
</span><del>-                               E3C2396B2721C9C100E37537 /* AudioComponentRegistration.cpp */,
-                               E3C2396C2721C9C200E37537 /* AudioComponentRegistration.h */,
</del><span class="cx">                           1A698F171E4910220064E881 /* AuxiliaryProcessCocoa.mm */,
</span><span class="cx">                          CE11AD511CBC482F00681EE5 /* CodeSigning.h */,
</span><span class="cx">                          CE11AD4F1CBC47F800681EE5 /* CodeSigning.mm */,
</span><span class="lines">@@ -11882,7 +11876,6 @@
</span><span class="cx">                          7B1DB26625668CE1000E26BC /* ArrayReference.h in Headers */,
</span><span class="cx">                          AAFA634F234F7C6400FFA864 /* AsyncRevalidation.h in Headers */,
</span><span class="cx">                          BCEE966D112FAF57006BCC24 /* Attachment.h in Headers */,
</span><del>-                               E3C2396E2721C9C200E37537 /* AudioComponentRegistration.h in Headers */,
</del><span class="cx">                           512F589712A8838800629530 /* AuthenticationChallengeProxy.h in Headers */,
</span><span class="cx">                          512F589912A8838800629530 /* AuthenticationDecisionListener.h in Headers */,
</span><span class="cx">                          518E8EF916B2091C00E91429 /* AuthenticationManager.h in Headers */,
</span><span class="lines">@@ -14133,7 +14126,6 @@
</span><span class="cx">                          2D92A77B212B6A7100F493FD /* ArgumentCoders.cpp in Sources */,
</span><span class="cx">                          2DEB1D2E2127473600933906 /* ArgumentCodersCF.cpp in Sources */,
</span><span class="cx">                          2D92A77C212B6A7100F493FD /* Attachment.cpp in Sources */,
</span><del>-                               E3C2396D2721C9C200E37537 /* AudioComponentRegistration.cpp in Sources */,
</del><span class="cx">                           CD4570D424411D0F00A3DCEB /* AudioSessionRoutingArbitrator.cpp in Sources */,
</span><span class="cx">                          CD4570D3244113B500A3DCEB /* AudioSessionRoutingArbitratorProxyMessageReceiver.cpp in Sources */,
</span><span class="cx">                          512F58A212A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp in Sources */,
</span></span></pre>
</div>
</div>

</body>
</html>