Closed Bug 1740244 Opened 4 years ago Closed 3 years ago

[Enhancement] Consider disabling right and middle-click events inside the PIP window

Categories

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

Desktop
All
enhancement

Tracking

()

VERIFIED FIXED
97 Branch
Tracking Status
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- verified

People

(Reporter: romartin, Assigned: rhopkinsdev)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files, 1 obsolete file)

[Notes]:

  • Usually right-click is associated with opening a menu and middle-click with opening a new tab.

[Affected Versions]:

  • Firefox Release 94.0.1 (Build ID: 20211103134640)
  • Firefox Beta 95.0b4 (Build ID: 20211107190147)
  • Firefox Nightly 96.0a1 (Build ID: 20211109093712)

[Affected Platforms]:

  • Windows 10 (x64)
  • macOS 11.6
  • Ubuntu Linux 20.04 x64

[Prerequisites]:

  • Have the latest version of Firefox Release installed.

[Steps to reproduce]:

  1. Navigate to “https://youtube.com”.
  2. Open any video.
  3. Hover the content of the video and click the “Watch in Picture-in-Picture” button.
  4. Right-click the Play/Pause button inside the newly opened Picture-in-Picture window.

[Expected results]:

  • The video is still playing.

[Actual results]:

  • The video is paused.
Component: Video/Audio Controls → Picture-in-Picture
Blocks: 1742457

Apparently a context menu appears when right clicking on the PiP window when using Ubuntu 20.04.3. (See attached photo).

I do not see any context menus for Windows 10 and MacOS Big Sur after right clicking on the PiP window. We may not want to disable right click events completely for Linux users.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → rhopkinsdev
Status: NEW → ASSIGNED

(In reply to kpatenio from comment #1)

Created attachment 9252688 [details]
ubuntu_20_04_3_right_click_pip_window.png

Apparently a context menu appears when right clicking on the PiP window when using Ubuntu 20.04.3. (See attached photo).

I do not see any context menus for Windows 10 and MacOS Big Sur after right clicking on the PiP window. We may not want to disable right click events completely for Linux users.

Interesting. Is that an OS context menu? I don't think that's PiP window specific.

That's coming from the window manager, it looks like. I don't think disabling our event handling should affect it?

Attachment #9254597 - Attachment description: Bug 1740244 - Don't run PiP button events when middle and right click is used r?mtigley,kpatenio,mhowell → Bug 1740244 - Don't run PiP button events when middle and right click is used r?kpatenio,mhowell
Attachment #9254832 - Attachment is obsolete: true
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/44fd8a4d2336 Don't run PiP button events when middle and right click is used r=kpatenio,mhowell
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch

I have verified that the middle click and the right click button events are not running in PiP using Firefox Nightly 97.0a1 (Build ID: 20211220094500) on Windows 10 x64, macOS 11.6, and Ubuntu Linux 20.04 x64.

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

Attachment

General

Creator:
Created:
Updated:
Size: