Picture-in-Picture toggle icon should not display if set media.videocontrols.picture-in-picture.video-toggle.enabled = false
Categories
(Toolkit :: Video/Audio Controls, defect, P1)
Tracking
()
People
(Reporter: alice0775, Assigned: mconley)
References
Details
Attachments
(2 files)
|
22.33 KB,
image/png
|
Details | |
|
47 bytes,
text/x-phabricator-request
|
lizzard
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr68-
|
Details | Review |
Reproduce: always
Steps To Reproduce:
- set media.videocontrols.picture-in-picture.enabled to false
- Open any video
Actual Results:
Picture-in-Picture toggle icon display
Expected Results:
Picture-in-Picture toggle icon should not display
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
On 69 release version with both media.videocontrols.picture-in-picture.enabled and media.videocontrols.picture-in-picture.video-toggle.enabled set to false:
While any video loads, an empty transparent player of default size is shown. In that player the blue toggle is visible, may be moused-over (it expands to the left) and clicked (if you're fast enough) which displays a PiP notification instead of the video ("this video...") and opens a broken empty window in the task bar.
Once the video loads in, the toggle is gone and I have no other way of accessing PiP functionality (as it should be). I suspect the toggle is shown and loaded regardless of the about:config flags and is simply behind the video instead of being completely disabled. Please remove it while PiP is disabled.
| Assignee | ||
Comment 3•6 years ago
|
||
Thanks David,
Yes, I can reproduce this when viewing http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 with those prefs set to false.
| Assignee | ||
Comment 4•6 years ago
•
|
||
[Tracking Requested - why for this release]:
This is an unfortunate visual glitch where we'll show the "Picture-in-Picture" toggle for a split second when videos are still in the midst of loading, even when the PiP feature is disabled.. This is probably exacerbated on slower connections where it takes longer to load the video.
| Assignee | ||
Comment 5•6 years ago
|
||
The good news is that, from what I can tell, this only affects videos that have controls="true", so doesn't seem to impact popular video sites like YouTube, Facebook, Amazon Prime, Twitch or Netflix.
Does that match your experience, David?
Yes, I've only noticed it either loading video files directly in a new tab or on sites that embed using the default player. Of those you mentioned I only use YouTube and I haven't seen the blue toggle show up there at all. And yes, loading time is a significant factor. When I play a local file it loads instantly and doesn't show the toggle. My connection isn't great, but I've noticed it more when the host is slow to respond. Once the file is locally cached on second viewing it also loads instantly, not revealing the toggle.
For reference: When I look at the source code of a site where I notice the toggle the embedding for a webm looks like
<video controls="" loop="" autoplay="" src=[...]></video>
| Assignee | ||
Comment 7•6 years ago
|
||
This patch centralizes the logic where the videocontrols UAWidget removes the
"hidden" attribute from the Picture-in-Picture toggle, and makes sure we only
do this if the PiP toggle is enabled.
| Assignee | ||
Comment 8•6 years ago
|
||
[Tracking Requested - why for this release]:
See comment 4.
| Assignee | ||
Comment 9•6 years ago
|
||
This bug kinda got away from the original summary / description, so I'll clone it out.
| Assignee | ||
Comment 10•6 years ago
|
||
Cloned this bug to bug 1580488 for the original issue.
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Comment 12•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 13•6 years ago
|
||
Comment on attachment 9091451 [details]
Bug 1545924 - Make sure to never unhide the Picture-in-Picture toggle if the feature is disabled. r?JSON_Voorhees
Beta/Release Uplift Approval Request
- User impact if declined: Users may see the Picture-in-Picture toggle on video elements briefly when a video is still loading, even if the feature is not enabled.
- 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 is a simple, well-understood patch that centralizes the logic for displaying (or hiding) the Picture-in-Picture toggle on videos, where before it was spread out over two places (and the second place allowed the toggle to display sometimes).
- String changes made/needed: None
Comment 14•6 years ago
|
||
Comment on attachment 9091451 [details]
Bug 1545924 - Make sure to never unhide the Picture-in-Picture toggle if the feature is disabled. r?JSON_Voorhees
Avoids showing a control if the feature is disabled. OK for uplift for beta 7.
Updated•6 years ago
|
Comment 15•6 years ago
|
||
| bugherder uplift | ||
Comment 16•6 years ago
|
||
Verified - fixed on latest Nightly 71.0a1 (2019-09-15) (64-bit) on Windows 10 x64.
Setting the media.videocontrols.picture-in-picture.video-toggle.enabled to false will disable the toggle for PiP. Enforced slow internet connectivity using network throttling.
Waiting for uplift to Beta7.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Verified - fixed on latest Beta 70.0b17 on Windows 10 x64.
Closing this as verified - fixed.
| Comment hidden (obsolete) |
| Assignee | ||
Comment 20•6 years ago
|
||
Bah, I apologize - I forgot that this bug doesn't depend on PiP being enabled.
| Assignee | ||
Comment 21•6 years ago
|
||
This isn't a critical security or performance fix, so I don't think it qualifies as something we'd fix for ESR. I'm going to suggest we WONTFIX.
| Assignee | ||
Comment 22•6 years ago
|
||
I spoke with RyanVM over IRC, and actually considering how early we are in the ESR release cycle, we're willing to take this. I'll request uplift.
| Assignee | ||
Comment 23•6 years ago
|
||
Comment on attachment 9091451 [details]
Bug 1545924 - Make sure to never unhide the Picture-in-Picture toggle if the feature is disabled. r?JSON_Voorhees
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: We're still early enough in the ESR release cycle (and before the auto-upgrades from 60), and we also feel that the patch is low-risk enough to warrant consideration.
- User impact if declined: Videos with the
controlsattribute on them can, for a small period of time while loading, show the Picture-in-Picture toggle if the mouse is hovering the video, despite that feature not being enabled. - Fix Landed on Version: 71
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It's a simple patch that's been on Nightly for quite a while, with no recurrence of the problem being observed or reported.
- String or UUID changes made by this patch: None.
Comment 24•6 years ago
|
||
Comment on attachment 9091451 [details]
Bug 1545924 - Make sure to never unhide the Picture-in-Picture toggle if the feature is disabled. r?JSON_Voorhees
Low risk fix to avoid a visual glitch with PiP mode. Approved for 68.2esr.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 25•6 years ago
|
||
The patch fails to apply. Bug 1547795 and bug 1555834 have not landed on (ESR) 68. Please provide a patch.
Comment 26•6 years ago
|
||
Comment on attachment 9091451 [details]
Bug 1545924 - Make sure to never unhide the Picture-in-Picture toggle if the feature is disabled. r?JSON_Voorhees
Per IRC discussion with mconley, it's not worth the rebase effort to fix this on ESR68.
Updated•6 years ago
|
Comment 27•6 years ago
|
||
Removing qe flags based on comment 26.
Description
•