joshuef / beaker

A browser for the SAFE Network
Other
20 stars 7 forks source link

browser doesn't consider `safe://` a secure origin #9

Closed gnunicorn closed 7 years ago

gnunicorn commented 7 years ago

Operation System: Mac OSX El Capitan, 10.11.6 Beaker Version: 0.3.5

Trying to use getUserMedia() from a safe://-url, the browser blocks the DOM API explaining that it doesn't consider safe a secure origin (like https):

getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

And gives us a NotSupported-Error: NotSupportedError: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).

The browser should allow this and other APIs and generally consider safe a secure origin.