-
Notifications
You must be signed in to change notification settings - Fork 25
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
window.open should support the 'fullscreen' option #7
Comments
One alternative here is making some affordance for Element.requestFullscreen() on newly opened windows when the Window Placement permission is granted. That would be similar to existing affordances on screen orientation changes, and proposed affordances on screen configuration changes. See similar thoughts here: w3c/presentation-api#476 (comment) |
This same idea got bumped by feedback from another potential partner. |
Perhaps window.open(url, name, "fullscreen=true") could automatically make document.documentElement fullscreen.
|
Gathering explicit use case statements from web application developers would be valuable. For example, I can imagine multi-monitor virtual desktop software might want to open a fullscreen window on each display when the user connects to a remote or virtualized machine session. #7, #92, and #98 are all somewhat interrelated. |
Support for this would be fantastic! We are currently experimenting with using the window placement API on Point of Sale machines with two integrated displays. The main display would run a web app for the cash register. The other display is facing the customer and would need to show the receipt. Having the ability to open a window full screen on the second monitor would be really helpful. |
I'm created an explainer for this feature on a separate repository: https://github.com/bradtriebwasser/fullscreen-popup/blob/main/EXPLAINER.md Any feedback on the explainer is encouraged! |
I am thinking in addition to gating behind "window placement", we might have to handle the case "fullscreen" is not alllowed by permission policy. For example window.open(url) comes with a header Permission-Policy: fullscreen=(). |
Without the 'fullscreen' option, the window must first be opened on the target display, and then requestFullscreen must be used. This option is currently marked as future work.
The text was updated successfully, but these errors were encountered: