Closed Bug 1579526 Opened 6 years ago Closed 6 years ago

Wrong screen sharing preview (regression)

Categories

(Core :: WebRTC: Audio/Video, defect, P2)

70 Branch
defect

Tracking

()

VERIFIED FIXED
mozilla71
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox69 --- unaffected
firefox70 + verified
firefox71 + verified

People

(Reporter: jib, Assigned: pehrsons)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The screen sharing preview always shows the first window in the list.

STRs:

  1. Open https://jan-ivar.github.io/dummy/gdm.html
  2. In the popup, select a window that is not the first entry and not "Entire screen".

Expected result:

  • Preview of the window selected

Actual result:

  • Preview of the first window in the list

Regression range:

0:54.08 INFO: Narrowed inbound regression window from [546d1fd4, c8b9ae70] (3 builds) to [546d1fd4, 73353f37] (2 builds) (~1 steps left)
0:54.08 INFO: No more inbound revisions, bisection finished.
0:54.08 INFO: Last good revision: 546d1fd47c9a48b6919848b2c6f28359460731eb
0:54.08 INFO: First bad revision: 73353f375d1dda3d4ff434da2a4f7bdfd39d3422
0:54.08 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=546d1fd47c9a48b6919848b2c6f28359460731eb&tochange=73353f375d1dda3d4ff434da2a4f7bdfd39d3422

[Tracking Requested - why for this release]: Regressed behavior

Do we secretly use a deviceId constraint internally to signal which screen or window is desired? Because I can see how that would be a regression from bug 1571667.

That is a bit ugly. Device ids follow the spec, and the spec simply doesn't allow device id constraints for display media.

I guess we need to deviceId constraints allowed for display media when the request is from chrome.

Assignee: nobody → apehrson
Status: NEW → ASSIGNED

That is indeed what we are doing.

Tracking as we may need to uplift a fix to 70 beta.

Pushed by pehrsons@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6622664a239e Allow deviceId and groupId constraints for privileged getDisplayMedia callers. r=jib
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71

Comment on attachment 9091403 [details]
Bug 1579526 - Allow deviceId and groupId constraints for privileged getDisplayMedia callers. r?jib

Beta/Release Uplift Approval Request

  • User impact if declined: Users will see the wrong screen/window share preview in most cases of requesting screen/window sharing.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment 0.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial change.
  • String changes made/needed:
Attachment #9091403 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Reproduced the bug on 70.0b5 20190909162732 (where fix hasn't been uplifted yet), confirmed that it works as expected on 69.0 20190827005903, which is unaffected by the bug and verified the landed fix on:

71.0a1 2019-09-12 on Windows 7, Mac 10.14.6 and Ubuntu 16.04

Comment on attachment 9091403 [details]
Bug 1579526 - Allow deviceId and groupId constraints for privileged getDisplayMedia callers. r?jib

Fix for new regression in 70, verified in nightly. OK for uplift for beta 7.

Attachment #9091403 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Reproduced the issue using an old beta build 70.0b5 (Build id: 20190909162732).
Verified - fixed in Beta 70.0b7 (Build id: 20190916074538) and latest Nightly 75.0a1 (2020-02-11). Based on this I will update the flags accordingly.
Thanks.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: