Twitter Onebox prevents video from going full screen

AI-generated summary

A bug was reported where Twitter Onebox embeddings prevent videos from going full screen, despite the full-screen control appearing to activate. bletch first observed this on mobile Chrome (Android) in v2.1.0.beta2 and later confirmed it also occurs on desktop browsers (Chrome and Firefox). Firefox Dev Edition logs a Content Security Policy error and a “Request for fullscreen” message each time the button is pressed, while Chrome shows no console output. techAPJ acknowledged the issue and confirmed it was fixed via this commit, crediting bletch for the detailed debugging. The issue affects both mobile and desktop platforms and was reproducible using this tweet.

As reported by @steven here, there appears to be an issue with Onebox handling of embedded videos in Twitter statuses.

The full screen control does not make the video go full screen.

The full screen control responds to the press and changes to be ‘restore to normal size’ but the video does not change size.

To reproduce, play the video in the embedded status below and click full screen.

I first saw the bug in v2.1.0.beta2 +251 - may have been present before.

I am not at my desktop machine so can’t test it on that configuration but the issue is there on mobile chrome on Android.

5 Likes

More information.

The issue is present on desktop too and fails in both Chrome and Firefox.

Chrome shows nothing in the console when refusing to go full screen but Firefox (Dev Ed’n) shows the following message.

The initial message on Content Security Policy was present on F5.

The Request for fullscreen… message occurs each time a full screen is requested by pressing the full screen control.

5 Likes

Should be fixed via:

https://github.com/discourse/discourse/commit/14a087965868bc690307f7de6770df887e401592

Thanks for debugging @bletch, that really helped. :+1:

8 Likes

This topic was automatically closed after 7 hours. New replies are no longer allowed.