Use the main screen for screen capture
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 May 2019 02:56:13 +0000 (02:56 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 May 2019 02:56:13 +0000 (02:56 +0000)
commit5080b992181af7b06a448ba7ef647f438c230fff
treef0d9b961494ca32831a52aaabb13455b6e094751
parenta1f2a7a1f754279c618e83adf2bb2ce640f78c2c
Use the main screen for screen capture
https://bugs.webkit.org/show_bug.cgi?id=197804
<rdar://problem/47671383>

Reviewed by Eric Carlson.

If the main screen, i.e. the screen that has focus at the time of
selection of the screen to capture, is capturable, add it to the list
of screen devices, but do not add any other screen.
This will make sure the main screen is selected.
Manually tested.

* platform/mediastream/mac/ScreenDisplayCaptureSourceMac.mm:
(WebCore::ScreenDisplayCaptureSourceMac::screenCaptureDevices):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/mac/ScreenDisplayCaptureSourceMac.mm