Title: [285646] trunk/Source
- Revision
- 285646
- Author
- [email protected]
- Date
- 2021-11-11 12:28:02 -0800 (Thu, 11 Nov 2021)
Log Message
[iOS] Adopt -[AVAudioSession setAuditTokensForProcessAssertion:]
https://bugs.webkit.org/show_bug.cgi?id=232909
<rdar://68184444>
Reviewed by Chris Dumez.
Source/WebCore:
Wrap the implementation of setPresentingProcess() in a HAVE guard.
* platform/audio/ios/AudioSessionIOS.mm:
(WebCore::AudioSessionIOS::setPresentingProcesses):
Source/WTF:
* wtf/PlatformHave.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (285645 => 285646)
--- trunk/Source/WTF/ChangeLog 2021-11-11 20:14:50 UTC (rev 285645)
+++ trunk/Source/WTF/ChangeLog 2021-11-11 20:28:02 UTC (rev 285646)
@@ -1,3 +1,13 @@
+2021-11-11 Jer Noble <[email protected]>
+
+ [iOS] Adopt -[AVAudioSession setAuditTokensForProcessAssertion:]
+ https://bugs.webkit.org/show_bug.cgi?id=232909
+ <rdar://68184444>
+
+ Reviewed by Chris Dumez.
+
+ * wtf/PlatformHave.h:
+
2021-11-10 Darin Adler <[email protected]>
[CF] Reduce duplication and unneeded buffer allocations and copying in URL code, also remove unused methods and functions
Modified: trunk/Source/WTF/wtf/PlatformHave.h (285645 => 285646)
--- trunk/Source/WTF/wtf/PlatformHave.h 2021-11-11 20:14:50 UTC (rev 285645)
+++ trunk/Source/WTF/wtf/PlatformHave.h 2021-11-11 20:28:02 UTC (rev 285646)
@@ -1085,3 +1085,9 @@
|| (PLATFORM(APPLETV) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __TV_OS_VERSION_MIN_REQUIRED >= 150000)
#define HAVE_CVBUFFERCOPYATTACHMENTS 1
#endif
+
+#if (PLATFORM(IOS_FAMILY) && !PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 150400) \
+ || (PLATFORM(APPLETV) && __TV_OS_VERSION_MAX_ALLOWED >= 150400) \
+ || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MAX_ALLOWED >= 80400)
+#define HAVE_AUDIOSESSION_PROCESSASSERTION 1
+#endif
Modified: trunk/Source/WebCore/ChangeLog (285645 => 285646)
--- trunk/Source/WebCore/ChangeLog 2021-11-11 20:14:50 UTC (rev 285645)
+++ trunk/Source/WebCore/ChangeLog 2021-11-11 20:28:02 UTC (rev 285646)
@@ -1,3 +1,16 @@
+2021-11-11 Jer Noble <[email protected]>
+
+ [iOS] Adopt -[AVAudioSession setAuditTokensForProcessAssertion:]
+ https://bugs.webkit.org/show_bug.cgi?id=232909
+ <rdar://68184444>
+
+ Reviewed by Chris Dumez.
+
+ Wrap the implementation of setPresentingProcess() in a HAVE guard.
+
+ * platform/audio/ios/AudioSessionIOS.mm:
+ (WebCore::AudioSessionIOS::setPresentingProcesses):
+
2021-11-11 Rachel Ginsberg <[email protected]>
Add support in WebCore for web app manifest icons
Modified: trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm (285645 => 285646)
--- trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm 2021-11-11 20:14:50 UTC (rev 285645)
+++ trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm 2021-11-11 20:28:02 UTC (rev 285646)
@@ -169,7 +169,7 @@
void AudioSessionIOS::setPresentingProcesses(Vector<audit_token_t>&& auditTokens)
{
-#if !PLATFORM(MACCATALYST)
+#if HAVE(AUDIOSESSION_PROCESSASSERTION)
auto session = [PAL::getAVAudioSessionClass() sharedInstance];
if (![session respondsToSelector:@selector(setAuditTokensForProcessAssertion:error:)])
return;
@@ -184,6 +184,8 @@
[session setAuditTokensForProcessAssertion:nsAuditTokens.get() error:&error];
if (error)
RELEASE_LOG_ERROR(Media, "Failed to set audit tokens for process assertion with error: %@", error.localizedDescription);
+#else
+ UNUSED_PARAM(auditTokens);
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes