mozilla-mobile / webxr-ios

An iOS app for testing WebXR
Mozilla Public License 2.0
211 stars 42 forks source link

The permissionLevelButton in the BarView is enabled when it shouldn't be #159

Closed robomex closed 5 years ago

robomex commented 5 years ago

WebXR permission levels can be accessed and "modified" via an enabled permissionLevelButton when that button should be disabled, e.g. when on a non-XR site.

This could lead to confusing UX that presents options that aren't relevant for the presented context.

The permissionLevelButton should be disabled and unresponsive to taps unless on a WebXR page & permissions have already been granted/denied for that page.