mozilla-mobile / focus-ios

⚠️ Firefox Focus (iOS) has moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Youtube videos do not play in full screen on iPad

dovanvu1792 opened this issue · comments

Steps to reproduce

  1. Launch Focus
  2. Past and GO on address bar: https://www.youtube.com/watch?v=CwA1VWP0Ldw
  3. Tap on full screen button

Expected behavior

  • Videos should play in full screen.

Actual behavior

  • The full screen button is greyed out.

Device & build information

  • Device: IPAD 12.9 gen 6

┆Issue is synchronized with this Jira Task

For me it happens only after I reload the tab. If I simply open the same video twice, the full screen button remains active.

Upon pressing on the grayed-out full screen button, a tooltiop appears saying: Full screen mode is not supported by this browser

Turning Tracking Protection off has no effect.

Adding

addScript(forResource: "FullScreen", injectionTime: .atDocumentStart, forMainFrameOnly: true)

to

addScript(forResource: "FullScreen", injectionTime: .atDocumentEnd, forMainFrameOnly: true)
seems to fix it