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?

有帮助吗?

解决方案

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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top