Right-click the PIP icon should show menu, but it launches PIP (while briefly showing a flash of the menu)
Categories
(Toolkit :: Picture-in-Picture, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | verified |
People
(Reporter: pannett, Assigned: kpatenio)
Details
Attachments
(3 files)
Expected:
When playing a video, right clicking the picture-in-picture icon should show a context menu.
Actual:
Right clicking the PIP icon does the same as a left-click – it launches the picture-in-picture window.
Comment 1•7 months ago
|
||
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.
Comment 2•7 months ago
|
||
Hi Paul,
Are you referring to the icon in the URL bar? Or the toggle on the video itself?
Comment 4•6 months ago
|
||
Comment 5•6 months ago
|
||
Hi Paul,
If you open this test page, and right click on any of the white area of the page, does it add a "context menu opened" message?
Comment 7•6 months ago
|
||
The severity field is not set for this bug.
:mconley, could you have a look please?
For more information, please visit BugBot documentation.
Hi Paul,
Does this happen for all videos? Would you mind sharing some videos links where you noticed the issue? And lastly, what OS are you using?
I'm wondering if this could be a problem with a site, or something else entirely.
| Reporter | ||
Comment 9•6 months ago
|
||
Thanks Katherine!
All videos on YouTube.com
Using Mac OS 14.6.1
I've sent you a video on Slack (it's too large to upload here)
| Assignee | ||
Comment 10•5 months ago
|
||
Thanks Paul. In case it helps others, I'll document what we briefly discussed on Slack:
- issue was spotted in Nightly 139.0a1
- machine is a M3 MBP (November 2023), macos 14.6.1 like previously stated
- no extensions were enabled
- we verified the prefs in
about:config. No immediate problems stood out to me. Evenmedia.videocontrols.picture-in-picture.visibility-thresholdwas set to the default1.0.
Despite having similar specs, I could not reproduce the issue from my end. If you don't mind checking again, Paul, do you still see the buggy behaviour on the latest Nightly?
| Reporter | ||
Comment 11•5 months ago
|
||
| Reporter | ||
Comment 12•5 months ago
|
||
Yes, the issue still persists in the latest Nightly
| Assignee | ||
Comment 13•5 months ago
|
||
Gotcha, thanks for the speedy reply. I'll mark this as a p3/s3 for the time being.
| Reporter | ||
Comment 14•5 months ago
|
||
I should add a detail that wasn't in the original ticket.
When I right click, the menu briefly shows before the PIP video pops out.
Shown in the GIF file that I shared a few minutes ago.
| Reporter | ||
Updated•5 months ago
|
| Assignee | ||
Comment 15•5 months ago
|
||
I should add a detail that wasn't in the original ticket.
When I right click, the menu briefly shows before the PIP video pops out.
Shown in the GIF file that I shared a few minutes ago.
Hmm, yeah it's odd that the menu appears briefly before PiP opens. Seems to be interference between YouTube's event handling on the video element and the PiP toggle. Might be worth investigating too if the problem occurs on other video sites.
Ex. try right clicking the toggle with this video: https://vimeo.com/channels/smashingconf
| Reporter | ||
Comment 16•5 months ago
|
||
Just tried Vimeo. Same issue as YouTube.
| Assignee | ||
Comment 17•5 months ago
|
||
Ah, actually I forgot about control + click; with it, I'm able to reproduce the problem. It acts like right click, but is apparently recognized as a primary click (event.button = 0) and doesn't satisfy the condition at this line to stop PiP from triggering. We may want to check if event.button == 0, but ensure there are no other modifiers.
| Reporter | ||
Comment 18•5 months ago
|
||
Sorry for the wild goose-chase!
I use a trackpad, so I use CTRL+click for what is commonly known as 'right click'
It didn't even cross my mind that I wasn't literally "right clicking" with a mouse.
| Assignee | ||
Comment 19•5 months ago
|
||
| Assignee | ||
Comment 20•5 months ago
|
||
(In reply to Paul from comment #18)
Sorry for the wild goose-chase!
I use a trackpad, so I use CTRL+click for what is commonly known as 'right click'
It didn't even cross my mind that I wasn't literally "right clicking" with a mouse.
No worries! I have a WIP patch up since I have cycles to spare.
Updated•5 months ago
|
Comment 21•5 months ago
|
||
Comment 22•5 months ago
|
||
| bugherder | ||
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 23•4 months ago
|
||
Reproduced the issue with Firefox 140.0a1 (2025-05-20) on macOS 12. Using Control + Click on the PiP video button will open PiP.
The issue is verified fixed with Firefox 140.0b2 on macOS 12. The context menu is correctly open when using Control + Click on the PiP video button.
Description
•