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 #101

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

Fullscreen Popup Windows #101

bradtriebwasser opened this issue Dec 1, 2022 · 3 comments
Assignees
Labels
from: Google Proposed, edited, or co-edited by Google. proposal withdrawn topic: web apis Spec relates to web APIs (entry points for script) venue: none / personal repository The venue for discussion is a GitHub repository not affiliated with a standards body.

Comments

@bradtriebwasser
Copy link

bradtriebwasser commented Dec 1, 2022

Request for position on an emerging web specification

Information about the spec

Design reviews and vendor positions

Anything else we need to know

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.

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');
@gsnedders gsnedders added topic: web apis Spec relates to web APIs (entry points for script) venue: none / personal repository The venue for discussion is a GitHub repository not affiliated with a standards body. from: Google Proposed, edited, or co-edited by Google. labels Dec 7, 2022
@annevk
Copy link
Contributor

annevk commented Feb 10, 2023

This depends on #117 it seems like.

Although from the example I don't understand where the target display comes in?

@bradtriebwasser
Copy link
Author

Agree, this is dependant on #117 particularly the permission / permission policy since it gated on those.

The explainer has a more thorough example which demonstrates opening a fullscreen popup on a target display: https://github.com/bradtriebwasser/fullscreen-popup/blob/main/EXPLAINER.md#opening-a-fullscreen-popup-on-another-display

It's worth noting this proposal is independent of the ability to open popups on target displays, but the example is shown to show the capabilities of the feature in conjunction with #117's ability to open popups on any display.

@hober hober moved this from Unscreened to Needs position in Standards Positions Review Backlog Mar 23, 2023
@hober hober moved this from Needs position to Needs assignees in Standards Positions Review Backlog Mar 27, 2023
@hober hober moved this from Needs assignees to Needs position in Standards Positions Review Backlog Mar 27, 2023
@hober hober changed the title Request for Position: Fullscreen Popup Windows Fullscreen Popup Windows Mar 30, 2023
@michaelwasserman
Copy link

Chromium is no longer pursuing this feature directly; see the superseding Standards Position request in Issue #345.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Google Proposed, edited, or co-edited by Google. proposal withdrawn topic: web apis Spec relates to web APIs (entry points for script) venue: none / personal repository The venue for discussion is a GitHub repository not affiliated with a standards body.
Development

No branches or pull requests

6 participants