Open Bug 2009192 Opened 8 months ago Updated 6 months ago

Document PiP is closed when moving opener between windows

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: vhilla, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached file test.html (obsolete) —

STR

  • Open test case, click the button
  • Move the tab with the test case to another window

Expected

  • The PiP window stays open

Actual

  • The PiP window is closed

I think this is not severe (doesn't need to block landing), but it works in Chrome and could be slightly annoying to users.

Attachment #9536416 - Attachment mime type: text/plain → text/html
See Also: → 2006594
Attached file test.html
Attachment #9536416 - Attachment is obsolete: true

Bug 2008334 will need to test that adopting the PiP opener doesn't mess with window activity. So I've also looked a bit at why tab adoption closes the PiP.

https://pernos.co/debug/uNWDbgoPE09LFMzlKOiu9g/index.html

We call Document::CloseAnyAssociatedDocumentPiPWindows due to a page hide from nsContentUtils::FirePageHideEventForFrameLoaderSwap, which is called from BrowserChild::RecvSwappedWithOtherRemoteLoader. But I don't know enough about frame loader swap in Gecko. Maybe we can special-case this pagehide or should call CloseAnyAssociatedDocumentPiPWindows from somewhere else.

Blocks: doc-pip-api
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: