4 ms·
Straw proposal: Get rid of the whole system of permission prompts completely and instead introduce a special input element for each permission. Example: Instea
by xg15 8y ago
Straw proposal: Get rid of the whole system of permission prompts completely and instead introduce a special input element for each permission.
Example: Instead of calling a JS API to show a prompt for push notifications, you'd embed an [input type="push-permission"] element in your page. This element would render as a special button that grants you the permission once the user clicks on it.
However, embedding it into a context where the user would actually want to click it, is your responsibility.
It would still be possible to spam the user with "self-made" overlay popups, but this is already possible today. The button would also need protection against clickjacking, which, I think, can be done by restricting how it can be styled or layered.
- deanclatworthy 8y agoThis will only result in people finding clickjacking methods to trick you into pressing. I would prefer that you can only trigger the request (using JS) on a top-level click-event, similar to how audio works on iOS (maybe Android too?).