MozillaReality / WebXR-emulator-extension

INACTIVE - WebXR emulator extension
Mozilla Public License 2.0
463 stars 55 forks source link

Show a warning if not using a SecureContext #244

Closed fernandojsg closed 2 months ago

fernandojsg commented 4 years ago

WebXR can't be used without a secure context (https or localhost) but the extension still lets you do it. I think it's fine to let the users use it without requiring a secure context as you are using it mainly for developing, but I believe it's important to show a warning message somewhere if you are not on a secure context (window.isSecureContext) indicating that in any real implementation it won't work as you expect.

takahirox commented 4 years ago

Related #197

takahirox commented 4 years ago

As #197 I've been thinking whether we should disable the extension in non SecureContext. But yeah the extension should be mainly used for dev purpose and warning sounds reasonable to me.

I'm thinking to go with the warning in v0.4.0 as you suggested. If anyone has concern about enabling in non SecureContext, please share with us.