Closed Bug 1592729 Opened 5 years ago Closed 5 years ago

Hide the Picture-in-Picture toggle and context menu item for MediaStream <video> elements

Categories

(Toolkit :: Video/Audio Controls, task, P1)

71 Branch
task

Tracking

()

VERIFIED FIXED
mozilla72
Tracking Status
firefox71 --- verified
firefox72 --- verified

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(4 files)

See bug 1592539 comment 1 for context.

This also updates the canToggle=false code paths in the Picture-in-Picture
mochitest head.js file, which were obviously never really exercised until
now.

Depends on D51159

Attachment #9105340 - Attachment description: Bug 1592729 - Hide the Picture-in-Picture toggle for MediaStream videos. r?JSON_Voorhees → Bug 1592729 - Hide the Picture-in-Picture toggle for MediaStream videos. r?Gijs
Attachment #9105341 - Attachment description: Bug 1592729 - Hide the Picture-in-Picture context menu item for MediaStream videos. r?Gijs → Bug 1592729 - Hide the Picture-in-Picture context menu item for MediaStream videos. r=Gijs
Attachment #9105343 - Attachment description: Bug 1592729 - Don't allow initting Picture-in-Picture for MediaStream videos. r?mstriemer → Bug 1592729 - Don't allow initting Picture-in-Picture for MediaStream videos. r?Gijs
Attachment #9105344 - Attachment description: Bug 1592729 - Add tests to ensure that the Picture-in-Picture toggle and context menus do not display for MediaStream videos. r?mstriemer → Bug 1592729 - Add tests to ensure that the Picture-in-Picture toggle and context menus do not display for MediaStream videos. r?Gijs
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/30cd20aafa10
Hide the Picture-in-Picture toggle for MediaStream videos. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/851938f1b76d
Hide the Picture-in-Picture context menu item for MediaStream videos. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/8383db870a39
Don't allow initting Picture-in-Picture for MediaStream videos. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/48a04a323ddc
Add tests to ensure that the Picture-in-Picture toggle and context menus do not display for MediaStream videos. r=Gijs

Comment on attachment 9105340 [details]
Bug 1592729 - Hide the Picture-in-Picture toggle for MediaStream videos. r?Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: Users on Windows who want to use the upcoming Picture-in-Picture feature can potentially enter a state where they end up seeing a really glitchy video feed from MediaStream video sources (example: camera feeds, screen feeds).
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This adds an additional condition to the methods that determine whether or not to display the PiP toggle and context menu item. It also adds an additional check within the code that triggers PiP to ensure that these types of videos can't be opened in an always-on-top player.
  • String changes made/needed: None.
Attachment #9105340 - Flags: approval-mozilla-beta?
Attachment #9105341 - Flags: approval-mozilla-beta?
Attachment #9105343 - Flags: approval-mozilla-beta?
Attachment #9105344 - Flags: approval-mozilla-beta?

Comment on attachment 9105340 [details]
Bug 1592729 - Hide the Picture-in-Picture toggle for MediaStream videos. r?Gijs

P1, bug fix for a 71 feature, patch with tests, approved for 71 beta 7, thanks.

Attachment #9105340 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9105341 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9105343 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9105344 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Build ID 20191128221751
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

Build ID 20191202091209
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Verified as fixed on the latest version of Firefox Beta (71.b12) and Nightly (72.0a1) using Windows 10.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: