Closed Bug 1687808 Opened 4 years ago Closed 3 years ago

Exiting Picture-in-Picture does not focus the respective window

Categories

(Toolkit :: Video/Audio Controls, defect, P3)

78 Branch
defect

Tracking

()

VERIFIED FIXED
96 Branch
Tracking Status
firefox96 --- verified

People

(Reporter: heathened, Assigned: falgunimst95)

References

(Blocks 2 open bugs, Regressed 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

(using Mac OS Big Sur)

Open a Firefox window (herein 'Window A')

Open another Firefox window (herein 'Window B') without closing Window A

Activate Picture-in-Picture mode using a video played from Window B

Put a window that does not belong to Firefox (i.e. Terminal) into focus

De-activate Picture-in-Picture mode using the button that appears over the floating video

Notice that even though the video originated in Window B, Window A is brought into focus

Actual results:

Firefox requests focus from the OS when Picture-in-Picture is de-activated, but does not take into consideration which Firefox window to focus. Firefox always focuses the first window opened.

Expected results:

Firefox should always focus the Firefox window where the video was playing from when Picture-in-Picture is de-activated.

Correction: User Agent says Mac OS X 10.15, but this is incorrect. I suspect this bug is present regardless of OS version, but this bug was found and tested on Mac OS 11.1.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Video/Audio Controls
Product: Firefox → Toolkit
Blocks: 1685549, videopip
Severity: -- → S4
Priority: -- → P3
Assignee: nobody → falgunimst95
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Thank you very much

Attachment #9245118 - Attachment description: WIP: Bug 1687808: solving Exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solving Exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solving Exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solving exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solving exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solved exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solved exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solved Exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solved Exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solve Exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solve Exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solve exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solve exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : solved exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : solved exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : Solved exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : Solved exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : Solved Exiting Picture-in-Picture does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : Solved Exiting Picture-in-Picture does not focus the respective window → Bug 1687808 : Solved Exiting Picture-in-Picture Does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : Solved Exiting Picture-in-Picture Does not focus the respective window → Bug 1687808 : Solve Exiting Picture-in-Picture Does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : Solve Exiting Picture-in-Picture Does not focus the respective window → Bug 1687808 : Solve exiting Picture-in-Picture Does not focus the respective window
Attachment #9245118 - Attachment description: Bug 1687808 : Solve exiting Picture-in-Picture Does not focus the respective window → Bug 1687808 : Solved exiting Picture-in-Picture Does not focus the respective window
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d6f5d8776453 Solved exiting Picture-in-Picture Does not focus the respective window r=mtigley,mhowell,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Regressions: 1739767
Flags: qe-verify+

I was able to reproduce the issue on Mac 10.13 using build 86.0a1 (20210120214738).
Verified as fixed on Mac 10.13, Win10 and Ubuntu 20.4 using build 96.0b3 (20211209163454).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 1764039
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: