Skip to content

Always on Top window #443

@hanguokai

Description

@hanguokai

This is a discussion or feature request.

Desired Functionality

Like video picture-in-picture function, it is useful for extensions to be able to create a small window that always be displayed on top of other contents/windows.

Related Web API

Major browsers support picture-in-picture API. But it is only for video element, so it is not useful for other use cases.

Since Chrome 116, there is a new Document Picture-in-Picture API. This is very close to my goal, but I find that it currently has the following limitations:

  • In theory, it may support multiple pip windows, but currently it supports only one pip window for all web pages and extensions. That means, 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. I hope it could support for multiple pip window for extensions, or guarantee one pip window per extension.
  • 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. I hope it can be used in offscreen documents, thus extensions don't need to open a visible tab to use it.

Related Extension API

bowser.windows.Window has a alwaysOnTop property, but it can't be specified in windows.create() method. Developers often expect this feature and then think of this property. Existing feature requests https://crbug.com/933215 and https://crbug.com/822425.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions