Closed Bug 1682479 Opened 4 years ago Closed 4 years ago

disablePictureInPicture attribute does not work

Categories

(Toolkit :: Video/Audio Controls, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1611831

People

(Reporter: kgbedell, Unassigned)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1611831 +++

+++ This bug was initially created as a clone of Bug #1607720 +++

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:83.0) Gecko/20100101 Firefox/83.0

Steps to reproduce:

Create a video element with a "disablePictureInPicture" attribute (as per spec https://w3c.github.io/picture-in-picture/#disable-pip).

Actual results:

The blue hovering PiP button appeared anyway, and the PiP option was present in the context menu.

  • When a video element is flipped horizontally (mirrored) to display a user's camera preview, the tooltips are rendered backward and are not readable.
  • When the PiP mode is activated, the video looses its flipped state due when using the CSS transform approach to flipping the element's view.
  • When the PiP mode is activated, the original video element that is meant to render mirror of the user's camera now renders the Firefox PiP message backwards.

Expected results:

According to the spec:
"If the disablePictureInPicture attribute is present on the video element, the user agent SHOULD NOT play the video element in Picture-in-Picture or present any UI to do so."

Works correctly on Chrome (the context menu option gets disabled).


Ignoring the W3C Spec is not a good solution as it is causing major issues for WebRTC applications. By not adhering to the W3C spec, you are breaking web application UI and forcing engineers to change our application code to adopt canvas-based rendering instead.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: