w3c / window-management

Window Management API
https://www.w3.org/TR/window-management/
Other
96 stars 25 forks source link

window.open should support the 'fullscreen' option #7

Open cterefinko opened 4 years ago

cterefinko commented 4 years ago

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.

michaelwasserman commented 3 years ago

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: https://github.com/w3c/presentation-api/issues/476#issuecomment-594670273

michaelwasserman commented 2 years ago

This same idea got bumped by feedback from another potential partner.

michaelwasserman commented 2 years ago

Perhaps window.open(url, name, "fullscreen=true") could automatically make document.documentElement fullscreen.

michaelwasserman commented 1 year ago

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.

NielsLeenheer commented 1 year ago

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.

bradtriebwasser commented 1 year ago

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!

tungnh28 commented 1 year ago

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=(). Should we give a notice and escape fullscreen mode in the cases? @bradtriebwasser WDYT?