This solution does not work for me because it can be easily circumvented by a malicious actor via:
- Code: Select all
document.webkitExitFullscreen = () => console.log('Stay full screen!');
Can I open an issue for programmatic fullscreen exit or is there a way to make sure a user can't circumvent the JS call?
EDIT: I suppose I can run the following in CefRenderProcessHandler::OnContextCreated:
- Code: Select all
Object.defineProperty(document, 'webkitExitFullscreen', {
value: document.webkitExitFullscreen,
writable: false
});
Seems a bit hackish.