Changeset 239389 in webkit
- Timestamp:
- Dec 19, 2018 1:25:29 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r239311 r239389 1 2018-12-19 Eric Carlson <eric.carlson@apple.com> 2 3 [MediaStream] Force system camera/microphone TCC prompt if necessary 4 https://bugs.webkit.org/show_bug.cgi?id=192820 5 <rdar://problem/42680098> 6 7 Reviewed by Jer Noble. 8 9 * wtf/Platform.h: Define HAVE_AUTHORIZATION_STATUS_FOR_MEDIA_TYPE. 10 1 11 2018-12-17 Chris Fleizach <cfleizach@apple.com> 2 12 -
trunk/Source/WTF/wtf/Platform.h
r239311 r239389 1463 1463 #define ENABLE_FULL_KEYBOARD_ACCESS 1 1464 1464 #endif 1465 1466 #if PLATFORM(IOS_FAMILY) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101400) 1467 #define HAVE_AUTHORIZATION_STATUS_FOR_MEDIA_TYPE 1 1468 #endif -
trunk/Source/WebKit/ChangeLog
r239384 r239389 1 2018-12-19 Eric Carlson <eric.carlson@apple.com> 2 3 [MediaStream] Force system camera/microphone TCC prompt if necessary 4 https://bugs.webkit.org/show_bug.cgi?id=192820 5 <rdar://problem/42680098> 6 7 Reviewed by Jer Noble. 8 9 * UIProcess/Cocoa/UIDelegate.mm: 10 (WebKit::UIDelegate::UIClient::decidePolicyForUserMediaPermissionRequest): Enable TCC check 11 and prompt on Mojave. 12 1 13 2018-12-19 Megan Gardner <megan_gardner@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
r239134 r239389 56 56 #import <wtf/URL.h> 57 57 58 #if PLATFORM(IOS_FAMILY)58 #if HAVE(AUTHORIZATION_STATUS_FOR_MEDIA_TYPE) 59 59 #import <AVFoundation/AVCaptureDevice.h> 60 60 #import <AVFoundation/AVMediaFormat.h> … … 913 913 } 914 914 915 #if PLATFORM(IOS_FAMILY)915 #if HAVE(AUTHORIZATION_STATUS_FOR_MEDIA_TYPE) 916 916 bool usingMockCaptureDevices = page.preferences().mockCaptureDevicesEnabled(); 917 917 auto requestCameraAuthorization = makeBlockPtr([this, &frame, protectedRequest = makeRef(request), webView = RetainPtr<WKWebView>(m_uiDelegate.m_webView), usingMockCaptureDevices]() {
Note: See TracChangeset
for help on using the changeset viewer.