Closed Bug 1856478 Opened 2 years ago Closed 2 years ago

Ability to disablePictureInPicture via JavaScript

Categories

(Toolkit :: Picture-in-Picture, enhancement)

Firefox 118
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1611831

People

(Reporter: bootrino, Unassigned, NeedInfo)

Details

Steps to reproduce:

Attempted to use disablePictureInPicture, works on all other popular browsers, not Firefox.

Actual results:

Firefox does not allow JavaScript to disable picture in picture via JavaScript with disablePictureInPicture.

Expected results:

disablePictureInPicture via JavaScript should be supported.

I don't want the picture in picture icon appearing on the videos in my application.

Using videos is a valid way if displaying animated user interfaced content instead of animated GIF. Displaying the picture in picture icon over these videos is a terrible user experience.

I can't see that Firefox not allowing this makes sense - it should be a website developer decision whether or not they want the picture in picture icon appearing on videos.

disablePictureInPicture is widely supported elsewhere:
https://caniuse.com/mdn-api_htmlvideoelement_disablepictureinpicture

This issue previously listed as WONTFIX here: https://bugzilla.mozilla.org/show_bug.cgi?id=1611831

The Bugbug bot thinks this bug should belong to the 'Toolkit::Picture-in-Picture' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Picture-in-Picture
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1611831
Resolution: --- → DUPLICATE

Yes it may be a duplicate but the duplicate is closed for commenting.

Setting aside all other issues.....

If this feature is supported by all the other major browser implementations then how about Firefox just pulls its head in and implements it for the sake of not sending us back to browser hell from when the web was young?

We added support for this in Firefox 116.

Is it not working for you?

https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/disablePictureInPicture#browser_compatibility

Please let us know if the support for this property not working for you.

Flags: needinfo?(bootrino)
You need to log in before you can comment on or make changes to this bug.