Make getDisplayMedia follow user gesture for media
Created attachment 376409 [details] Patch
<rdar://problem/54358510>
Comment on attachment 376409 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=376409&action=review > Source/WebCore/Modules/mediastream/MediaDevices.cpp:129 > + if (!m_disableGetDisplayMediaUserGestureConstraint && !document->processingUserGestureForMedia()) { I'm not sure we want this because on mobile, UserGestureIndicator::processingUserGestureForMedia allows a touch start whereas UserGestureIndicator::processingUserGesture allows only a touch end.
Let's keep the current behaviour which is more predictable for now. We can revisit if we find some blocking scenarios.