Changeset 269138 in webkit
- Timestamp:
- Oct 28, 2020, 11:13:47 PM (6 years ago)
- Location:
- branches/safari-610-branch
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/ios/mediastream/video-muted-in-background-tab.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-610-branch/LayoutTests/ChangeLog
r268980 r269138 1 2020-10-28 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r268791. rdar://problem/70795323 4 5 [iOS] Disable audio capture in the background for non Safari applications 6 https://bugs.webkit.org/show_bug.cgi?id=217948 7 <rdar://problem/70241557> 8 9 Reviewed by Eric Carlson. 10 11 Source/WebCore: 12 13 We do not have good OS support when capturing audio in a WebProcess for a backgrounded application. 14 Until we have proper support, it seems best to mute audio capture when being backgrounded. 15 Manually tested. 16 17 * platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm: 18 (WebCore::RealtimeMediaSourceCenter::shouldInterruptAudioOnPageVisibilityChange): 19 20 LayoutTests: 21 22 * platform/ios/mediastream/video-muted-in-background-tab.html: 23 By default, audio capture will be muted in WTR if page goes to background. 24 Update the test to explicitly request for audio capture to continue while in background. 25 26 27 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@268791 268f45cc-cd09-0410-ab3c-d52691b4dbfc 28 29 2020-10-21 Youenn Fablet <youenn@apple.com> 30 31 [iOS] Disable audio capture in the background for non Safari applications 32 https://bugs.webkit.org/show_bug.cgi?id=217948 33 <rdar://problem/70241557> 34 35 Reviewed by Eric Carlson. 36 37 * platform/ios/mediastream/video-muted-in-background-tab.html: 38 By default, audio capture will be muted in WTR if page goes to background. 39 Update the test to explicitly request for audio capture to continue while in background. 40 1 41 2020-10-26 Karl Rackler <rackler@apple.com> 2 42 -
branches/safari-610-branch/LayoutTests/platform/ios/mediastream/video-muted-in-background-tab.html
r261373 r269138 43 43 44 44 promise_test(async (t) => { 45 if (window.internals) 45 if (window.internals) { 46 window.internals.setShouldInterruptAudioOnPageVisibilityChange(false); 46 47 window.internals.setPageVisibility(false); 48 } 47 49 assert_false(audioTrack.muted, "audio track is active"); 48 50 assert_true(videoTrack.muted, "video track is muted"); -
branches/safari-610-branch/Source/WebCore/ChangeLog
r268837 r269138 1 2020-10-28 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r268791. rdar://problem/70795323 4 5 [iOS] Disable audio capture in the background for non Safari applications 6 https://bugs.webkit.org/show_bug.cgi?id=217948 7 <rdar://problem/70241557> 8 9 Reviewed by Eric Carlson. 10 11 Source/WebCore: 12 13 We do not have good OS support when capturing audio in a WebProcess for a backgrounded application. 14 Until we have proper support, it seems best to mute audio capture when being backgrounded. 15 Manually tested. 16 17 * platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm: 18 (WebCore::RealtimeMediaSourceCenter::shouldInterruptAudioOnPageVisibilityChange): 19 20 LayoutTests: 21 22 * platform/ios/mediastream/video-muted-in-background-tab.html: 23 By default, audio capture will be muted in WTR if page goes to background. 24 Update the test to explicitly request for audio capture to continue while in background. 25 26 27 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@268791 268f45cc-cd09-0410-ab3c-d52691b4dbfc 28 29 2020-10-21 Youenn Fablet <youenn@apple.com> 30 31 [iOS] Disable audio capture in the background for non Safari applications 32 https://bugs.webkit.org/show_bug.cgi?id=217948 33 <rdar://problem/70241557> 34 35 Reviewed by Eric Carlson. 36 37 We do not have good OS support when capturing audio in a WebProcess for a backgrounded application. 38 Until we have proper support, it seems best to mute audio capture when being backgrounded. 39 Manually tested. 40 41 * platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm: 42 (WebCore::RealtimeMediaSourceCenter::shouldInterruptAudioOnPageVisibilityChange): 43 1 44 2020-10-21 Russell Epstein <repstein@apple.com> 2 45 -
branches/safari-610-branch/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm
r260366 r269138 29 29 #if ENABLE(MEDIA_STREAM) 30 30 31 #include "RuntimeApplicationChecks.h" 32 31 33 namespace WebCore { 32 34 … … 34 36 { 35 37 #if PLATFORM(IOS) 38 if (!WebCore::IOSApplication::isMobileSafari() && !WebCore::IOSApplication::isSafariViewService()) 39 return true; 40 36 41 NSArray *modes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIBackgroundModes"]; 37 42 if (!modes)
Note:
See TracChangeset
for help on using the changeset viewer.