Changeset 239389 in webkit


Ignore:
Timestamp:
Dec 19, 2018 1:25:29 PM (5 years ago)
Author:
eric.carlson@apple.com
Message:

[MediaStream] Force system camera/microphone TCC prompt if necessary
https://bugs.webkit.org/show_bug.cgi?id=192820
<rdar://problem/42680098>

Reviewed by Jer Noble.

Source/WebKit:

  • UIProcess/Cocoa/UIDelegate.mm:

(WebKit::UIDelegate::UIClient::decidePolicyForUserMediaPermissionRequest): Enable TCC check
and prompt on Mojave.

Source/WTF:

  • wtf/Platform.h: Define HAVE_AUTHORIZATION_STATUS_FOR_MEDIA_TYPE.
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r239311 r239389  
     12018-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
    1112018-12-17  Chris Fleizach  <cfleizach@apple.com>
    212
  • trunk/Source/WTF/wtf/Platform.h

    r239311 r239389  
    14631463#define ENABLE_FULL_KEYBOARD_ACCESS 1
    14641464#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  
     12018-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
    1132018-12-19  Megan Gardner  <megan_gardner@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm

    r239134 r239389  
    5656#import <wtf/URL.h>
    5757
    58 #if PLATFORM(IOS_FAMILY)
     58#if HAVE(AUTHORIZATION_STATUS_FOR_MEDIA_TYPE)
    5959#import <AVFoundation/AVCaptureDevice.h>
    6060#import <AVFoundation/AVMediaFormat.h>
     
    913913    }
    914914
    915 #if PLATFORM(IOS_FAMILY)
     915#if HAVE(AUTHORIZATION_STATUS_FOR_MEDIA_TYPE)
    916916    bool usingMockCaptureDevices = page.preferences().mockCaptureDevicesEnabled();
    917917    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.