Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen Popup Windows #714

Closed
bradtriebwasser opened this issue Dec 1, 2022 · 2 comments
Closed

Fullscreen Popup Windows #714

bradtriebwasser opened this issue Dec 1, 2022 · 2 comments

Comments

@bradtriebwasser
Copy link

Request for Mozilla Position on an Emerging Web Specification

Introduction

This proposal introduces the ability for web applications to open a fullscreen popup window, without the need for a separate calls to Window.open() and Element.requestFullscreen().

The proposed enhancement would allow web applications to create a fullscreen popup window on a target display from a single user activation. The window placement permission will be required for these capabilities.

Problem and Use Cases

Web applications are limited in the ways that they can Initiate Multi-Screen Experiences across multi-display configurations. Specifically, opening a popup and transitioning the window to fullscreen typically requires two separate user gestures (depending on brower popup blocking settings). This results in a cumbersome user experience for web applications which utilize multiple displays.

Multiple partners and early adopters of the Multi-Screen Window Placement API have specifically requested the ability to show one or more fullscreen popups from a single user gesture, to avoid the user friction entailed with making separate gestures to create each window and make each window fullscreen. For example:

w3c/window-management#7
w3c/window-management#98 (comment)
w3c/window-management#92.

Some basic illustrative examples which may be achieved with this proposal are listed below:

  • Video streaming app launches a video directly to fullscreen on a separate display.
  • 3D modeling app launches a preview in fullscreen on a separate display.

Proposal

Allow sites with the window-management permission to open a fullscreen window on a specified display from a single user gesture. Scripts calling window.open() to request a popup window could also include a new fullscreen boolean window feature.

Fullscreen popup requests could also include window bounds features (e.g. left, top, width, height), with positions specified relative to the multi-screen origin, to request that the window be made fullscreen on the screen containing those bounds, and also to be used as the popup window bounds after exiting fullscreen.

Example Code

Basic Example:

window.open(url, '_blank', 'popup,fullscreen');
@michaelwasserman
Copy link

Chromium is no longer pursuing this feature directly; see the superseding Request for Position in Issue #1020.

@martinthomson
Copy link
Member

Thanks @michaelwasserman, we'll just close this then.

@zcorpan zcorpan changed the title Request for Position: Fullscreen Popup Windows Fullscreen Popup Windows Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants