Auto-select first item in WebRTC screen/window sharing menulist, and remove "Select screen or window" default item
Categories
(Firefox :: Site Permissions, task, P2)
Tracking
()
People
(Reporter: mconley, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: helpwanted, Whiteboard: [proton-door-hangers][priority:2b])
Attachments
(1 obsolete file)
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
The separator below the "Select screen or window" item should also be removed, naturally.
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
Not as simple as I initially thought. I'm running into some tests failures. For example: https://treeherder.mozilla.org/logviewer?job_id=335714009&repo=try&lineNumber=4627
I believe we run into a race condition after the async getUserMedia
call for the screen share preview. This is more apparent now that we directly show the preview whenever the screen sharing permission prompt is shown. I'm looking into it.
Updated•3 years ago
|
Comment 4•3 years ago
•
|
||
In the review for the patch :jib brought up some concerns:
https://phabricator.services.mozilla.com/D110977#inline-633853
// "Select a Window or Screen" is the default because we can't and don't
// want to pick a 'default' window to share (Full screen is "scary").
This comment still seems true to me. We can't reasonably guess which source the user wishes to share, and presharing one risks miscommunicating that this is the source the web page is asking for.
There really is no good candidate for "default choice" for screen capture, since we don't know which window the user intends to share.
The only candidate that might have made sense as a default would be "Full screen", except it security issues, and the spec is admonishing us to steer users away from sharing their full screen for security reasons. See https://crbug.com/920752
What's driving this change?
I agree that we need to be careful about which screen or window we select by default here.
Tyler, could you explain what we want to achieve with this change?
Since we don't know which screen or window the user wants to share, is there even a benefit in pre-selecting the first one?
Updated•3 years ago
|
Comment 5•3 years ago
|
||
I'm assigning for now. Let me know if you still want to pursue this / feel free to pick it up.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•