-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add permission policy integration #112
Conversation
4b6926f
to
082254a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gamepad events also need protection. We should simply put something like "Events will not be fired unless the feature policy "gamepad" is enabled."
good point! I forgot they fire on the Window object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see an issue number that gets closed by this change. But the change itself looks good to me.
Also fyi, I am currently implementing the metric for gamepad use in cross origin sub frames so we have more info on how to move forward with this breaking change.
#119 - once we have the telemetry data, we can move on the tests and implementation commitments. |
Co-Authored-By: Sid Vishnoi <[email protected]>
broke a few hundred or thousand games on itch.io |
Which browser? As far as I know this change isn't enforced yet in Chrome or Firefox. Can you link to an example of a game that was broken? |
You're right. There's just a warning. So they'll all break in a few months but not today |
According to their documentation itch.io hosts web games by embedding an iframe. This is why this change will break a number of games but also means that the fix is simple. itch.io needs to add "gamepad" to the existing |
I have contacted the itch.io admin about this via e-mail. If the change is not done in a few days someone else should try pinging him via social media until he notices. He has been responsive about adding needed permissions before so it will likely be done before this is enforced. |
Anyone updating mdn? https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy |
Pinging @jpmedley for the MDN update. This change hasn't shipped in Chrome or Firefox but we've started to show a console warning so a note in MDN would be helpful as well. |
Gamepad permission has now been added to itch.io iframe. ✨ |
I've added an allow="gamepad" attribute to the iframes on https://bitmelo.com however I am still getting this warning in Chrome. Am I handling this correctly or is there something else I need to do? |
I saw the message when I loaded https://bitmelo.com, I think I understand the issue and have filed https://crbug.com/1183491 to track the fix. |
Is this required yet? When adding the permission to iframes (allow="gamepad") it still prints
But it also still mentions
Seen here in console |
@subsoap, I believe it should be "coming soon". @JamesHollyer, any update? |
Filed WebKit bug https://bugs.webkit.org/show_bug.cgi?id=230136 ... will implement that. |
Closes #119
Related: w3c/permissions#200
The following tasks have been completed:
Implementation commitment:
Preview | Diff