Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Conversation

@lidel
Copy link
Member

@lidel lidel commented May 8, 2018

Background

Chrome won't allow access to webcrypto for pages served via HTTP unless it's at localhost.
This means parts of window.ipfs will be broken on non-TLS non-localhost gateways.
ipfs/ipfs-companion#475

Rationale

Current error can be confusing as Chrome does have webcrypto support, but it is not available on non-TLS HTTP sites. A developer may opt-in to use a webcrypto-shim in such case, but it takes some time with google to realize what is happening in the first place. Improved Error improves UX by introducing the concept of secure context as a second thing to check.

Related issues

@daviddias daviddias merged commit b9c52b9 into master May 30, 2018
@daviddias daviddias deleted the webcrypto-error branch May 30, 2018 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

status/ready Ready to be worked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants