explainers-by-googlers / html-fullscreen-without-a-gesture

HTML Fullscreen Without A Gesture
Creative Commons Attribution 4.0 International
0 stars 0 forks source link

This would help greatly with our Point-of-Sales systems #2

Open cavac opened 2 months ago

cavac commented 2 months ago

We are developing web-based point-of-sales systems. A high percentage of it runs on standalone hardware (integrated Linux box, two screens, thermal printer).

Currently, we have to run a separate processes just to switch the HTML Canvas displays into fullscreen mode. Basically, it simulates mouse clicks on both screens when requested via websocket.

Having the ability to configure Google Chrome to allow JS to switch to fullscreen without user input would make the software easier to implement, make it react faster and provide a smoother user experience.

michaelwasserman commented 2 months ago

Thank you for sharing the details of your well-matched use case! All developer feedback is greatly appreciated.

You can follow a ChromeStatus entry and tracking bug for Chromium implementation progress, and see a demo.

Please note Chromium's current IWA or enterprise policy requirement.

Chromium intermittent fullscreen failures in window/document load event handlers should be fixed by a WIP CL. If needed, a temporary setTimeout/setInterval workaround like my example and a chromium browser test should help.