Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Browsers adopting a stricter Feature Policy (fullscreen issue)

A topic by 2020 created Mar 18, 2020 Views: 361 Replies: 2
Viewing posts 1 to 2
(3 edits)

Firefox has just adopted a stricter Feature Policy [1].

Previously, it treated itch.io <iframe> attributes

allowfullscreen="true" allow="fullscreen;"

as

allow="fullscreen *;"

but in the new version they are interpreted according to [2]

allow="fullscreen 'src';"

This has broken HTML5 in-game fullscreen functionality for me (e.g. fullscreen button in Settings screen).

Similarly, Chrome used to interpret

allowfullscreen="true" allow="fullscreen;"

according to [3]

allow="fullscreen *;"

but that seems to have changed too, introducing the same issue (not sure in which version).

Could itch.io explicitly use

   allow="fullscreen *; ... "

so that everything works again?

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/74, HTTP
[2] https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy/Using_Feature_Policythe iframe allow attribute
[3] https://developers.google.com/web/updates/2018/06/feature-policy, the iframe allow attribute

Admin

Thanks, change has been deployed.

Thank you!

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.