Skip to content

documentPictureInPicture menu context #17928

Description

@H3r3zy

What happened?

With the last pip update of chromium the documentPictureInPicture global is now available.

When requesting a pipMode (and transfered all css) it's working fine.
BUT when a contextMenu (tooltip, menu, dialog, select) is open it's open in the main window and not in the pip window since it use the default document instead of ownerDocument to add the div in the body

** /!\ The codepen don't work since only the top-level browsing content can open a pip window**

What did you expect to happen?

The tooltip / menu etc are open in the pip window

Reproduction URL

https://codepen.io/H3r3zy/pen/yyLEmNL

How to reproduce?

  1. Click on open pip
  2. hover the notify button
  3. You'll see the tooltip on the main window and not the pip window

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions