Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

WKWebView: Fullscreen API User Gesture Bypass

Howdy,

WKWebView feature request: allow Fullscreen API without User Gestures

similar to ElectronJS' userGesture: true flag that allows devs to bypass user gesture restriction for Fullscreen API and similar

executeJavaScript(code[, userGesture])

https://www.electronjs.org/docs/latest/api/web-contents#contentsexecutejavascriptcode-usergesture

afaik this is allowed because of a fairly recent update to Chromium that also allows users to give Fullscreen API permissions per domain https://chromeos.dev/en/posts/using-the-fullscreen-api-without-gestures

Would be greatly useful for a use case in my cross-platform app, so I can avoid rewriting all platforms to use Chromium

Thanks

Submitted FB17301399 in case requires ticket for tracking

WKWebView: Fullscreen API User Gesture Bypass
 
 
Q