mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.22k stars 2.93k forks source link

Buttons not working Games website running Unity WebGL2 #22588

Open dittakhan opened 3 weeks ago

dittakhan commented 3 weeks ago

Steps to reproduce

  1. Go to https://www.timestables.co.uk/happy-burger.html?play
  2. Press on Start button

Expected behavior

Button is clickable..... and game starts

Actual behavior

Button is NOT clickable.

Device & build information

Simulator Screenshot - iPad Pro 11-inch (M4) - 2024-10-16 at 15 49 59

┆Issue is synchronized with this Jira Task

data-sync-user commented 2 weeks ago

➤ Norberto Andres Furlan commented:

Adina Petridean can you test this one? Thanks!

dittakhan commented 2 weeks ago

I have found that you need to set the elementFullscreenEnabled on the WKWebView.

webView.configuration.preferences.elementFullscreenEnabled = YES;

In order to set this, minimum iOS target should to be set to 15.4.

For reference:

  1. https://developer.apple.com/documentation/webkit/wkpreferences/3917769-elementfullscreenenabled
  2. https://developer.apple.com/videos/play/wwdc2022/10049
data-sync-user commented 2 weeks ago

➤ Adina Petridean commented:

This issue is reproducible on Firefox 132 (46575) and 131.3 (46526) on iPad Air (18). It occurs both in private browsing (PB) and normal browsing (NB) modes.

[^movie.MP4]