Skip to content

Allow WKWebView to go fullscreen#5211

Merged
brentsimmons merged 1 commit intoRanchero-Software:mainfrom
jsonfry:fullscreen_webview
Mar 30, 2026
Merged

Allow WKWebView to go fullscreen#5211
brentsimmons merged 1 commit intoRanchero-Software:mainfrom
jsonfry:fullscreen_webview

Conversation

@jsonfry
Copy link
Copy Markdown
Contributor

@jsonfry jsonfry commented Mar 24, 2026

To support things like YouTube video embeds going fullscreen.

The built in behavoiur for multiple windows / monitors is pretty good, here's a video of it in action:

full.screen.webview.xq29.mp4

To support things like YouTube video embeds going fullscreen.
@jsonfry
Copy link
Copy Markdown
Contributor Author

jsonfry commented Mar 24, 2026

This possibly resolves #553 and #3206

@jsonfry jsonfry marked this pull request as ready for review March 26, 2026 17:31
@brentsimmons
Copy link
Copy Markdown
Collaborator

Are there any risks to this? Side effects or edge cases?

What happens when a person doesn't have spaces turned on and it goes fullscreen? Is it obvious how to get out of fullscreen?

@jsonfry
Copy link
Copy Markdown
Contributor Author

jsonfry commented Mar 27, 2026

Thanks for looking at this, I really appreciate it.

In terms obviousness of getting out of fullscreen, it depends on the contents of the webpage that has asked to go fullscreen, but you can always move the mouse pointer to the top of the screen:

Screenshot 2026-03-27 at 16 05 33

I think side effects and risks are minimal as WKWebView handles it all for you, it should behave the same as Safari. E.g. you see the same "Click to Exit Full Screen" behaviour in Safari:

Screenshot 2026-03-27 at 16 18 24

Also, given the built-in web rules, content can't go fullscreen unless the action happens from direct user input (like a click), so there's the same risk level as a web browser in terms of malicious web content.

I've also tested what happens if you have content in fullscreen and then switch to another feed or entry, and that behaves correctly.

I couldn't work out how to turn off spaces in Sequoia or Tahoe (the two Macs I have here), I'd hope that WKWebView would use whatever OS fullscreen api is available or report to the web content that fullscreen is not available, but that could be an interesting thing to check if anyone else can?

This is a feed I've checked: https://www.henrikkarlsson.xyz/feed . The entry "Differently Free" has an embedded YouTube video that works (quite why that embed doesn't have the "Error 153" problem in #4860 I don't know).

@brentsimmons brentsimmons merged commit d880671 into Ranchero-Software:main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants