Try using Document Picture-in-Picture API

195 views
Skip to first unread message

Jackie Han

unread,
Aug 20, 2023, 2:45:11 PM8/20/23
to Chromium Extensions
Document Picture-in-Picture API has shipped in Chrome 116. So I tried using this feature.

Similar to the Video PiP function, it allows an interactive document to always be displayed on top of all web pages and native apps. So you can imagine that some extensions can take advantage of this function. Cool!

Let's talk about its current limitations:
1. In theory, it may support multiple pip windows, but currently it supports only one pip window for all web pages and extensions. For example, if one extension opens a pip window, now another extension opens a pip window, the previous pip window will be closed first. See issue-27.
2. It works only for extension pages that are opened in browser tabs, not working for popup page, side panel page and offscreen documents. See issue-88.

Jackie Han
Reply all
Reply to author
Forward
0 new messages