Pregunta

Is it possible to create a custom user permission request dialog for HTML5 APIs (e.g geolocation or getUserMedia) so they look the same across all browsers?

¿Fue útil?

Solución

Thankfully, no!

If you were able to create your own, you might phrase the question (and buttons) misleadingly. Just like you can't style the onbeforeunload popup.

Anything that is outside your sandbox, and you're trying to get access to, has to be controlled by the browser UI. Otherwise it'll just be complete and utter mayhem.

Otros consejos

are you talking about having one custom style of all api authentications, across multiple API's, most API's such as facebook, instagram, foursquare, google etc, have their own dialogs you have to use in order to auth, so I believe creating a custom one would be not possible, although I hate saying things aren't possible. But also in terms of HTML5 API's they cannot be customized

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top