close the Firefox window while the PiP window is running, the PiP window remains and freezes. It seems that the PiP window should be closed as well.
Categories
(Toolkit :: Video/Audio Controls, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox94 | --- | unaffected |
firefox95 | --- | unaffected |
firefox96 | --- | verified |
People
(Reporter: lunamoth, Assigned: kpatenio)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.3 Safari/537.36
Steps to reproduce:
Firefox 96.0a1 (2021-11-05) (64-bit)
- Play video
- Activate PiP
- Quit Firefox
Actual results:
- Play video
- Activate PiP
- Quit Firefox
- PiP window remains
Expected results:
- Play video
- Activate PiP
- Quit Firefox
- Quit the PiP window and Firefox together
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
![]() |
||
Comment 2•2 years ago
|
||
I can reproduce the issue in Nightly96.0a1 Windows10 and Ubuntu20.04.
![]() |
||
Updated•2 years ago
|
I can confirm that this is also a reproducible issue with MacOS Big Sur on Nightly 96.0a1.
I suspect this is happening after a fix for Bug 1687808, which aimed to fix issues with focus after closing a pip window. The problem occurs here. Apparently, it's possible that browser.ownerGlobal
(and thus browser.ownerGlobal.gBrowser
) return null/undefined, causing the pip window to stall after the browser window is closed.
To fix this issue, we should add a condition to not move further with _focusPipBrowserWindow()
if browser
, browser.ownerGlobal
and/or browser.ownerGlobal.gBrowser
are null or undefined.
Comment 6•2 years ago
|
||
(In reply to kpatenio from comment #4)
I can confirm that this is also a reproducible issue with MacOS Big Sur on Nightly 96.0a1.
I suspect this is happening after a fix for Bug 1687808, which aimed to fix issues with focus after closing a pip window. The problem occurs here. Apparently, it's possible that
browser.ownerGlobal
(and thusbrowser.ownerGlobal.gBrowser
) return null/undefined, causing the pip window to stall after the browser window is closed.To fix this issue, we should add a condition to not move further with
_focusPipBrowserWindow()
ifbrowser
,browser.ownerGlobal
and/orbrowser.ownerGlobal.gBrowser
are null or undefined.
Nice find! I agree it seems like Bug 1687808 likely regressed this. Do you think you can get a mozregression log to confirm this?
Updated•2 years ago
|
(In reply to [:mtigley] (she/her) from comment #6)
(In reply to kpatenio from comment #4)
I can confirm that this is also a reproducible issue with MacOS Big Sur on Nightly 96.0a1.
I suspect this is happening after a fix for Bug 1687808, which aimed to fix issues with focus after closing a pip window. The problem occurs here. Apparently, it's possible that
browser.ownerGlobal
(and thusbrowser.ownerGlobal.gBrowser
) return null/undefined, causing the pip window to stall after the browser window is closed.To fix this issue, we should add a condition to not move further with
_focusPipBrowserWindow()
ifbrowser
,browser.ownerGlobal
and/orbrowser.ownerGlobal.gBrowser
are null or undefined.Nice find! I agree it seems like Bug 1687808 likely regressed this. Do you think you can get a mozregression log to confirm this?
From this mozregression log, I can confirm that Bug 1687808 regressed this.
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Set release status flags based on info from the regressing bug 1687808
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a246320d9aa fixed issue with PiP window freezing after closing browser. r=mtigley,mhowell
Comment 10•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 11•2 years ago
|
||
I was able to reproduce the issue on Win10 using 96.0a1 (20211105214712).
Verified as fixed on Win10/Ubuntu 20.4 /Mac 10.13 using 96.0b4 (20211212185725).
Updated•2 years ago
|
Description
•