-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IPFS] Secure context for ipfs:
-Scheme
#13727
Comments
This is "only" a cosmetic issue :-) cc @autonome @bbondy @jessicaschilling
|
this is also discussed in #13303 (comment) |
@lidel I'm not so sure that this is purely cosmetic - it seems that despite Compare this with the same page loaded via https://ipfs.io/: |
@jbaicoianu if a Web API is available on |
@lidel looks like the XR secure vs insecure difference @jbaicoianu is pointing out is:
Hope that helps! I can't yet answer the specific question of which APIs are missing/labeled as insecure, though. |
The popup label will be fixed in #14889 |
Hi, sorry I missed the notification for the reply asking for clarification. As far as I can tell, the WebXR API is present as expected when loaded via ipfs, but requests to activate an XR session are being rejected because WebXR is specced to only allow sessions in secure contexts. So I guess the real question is, "should ipfs be considered a secure context, and if yes, is there some check somewhere in the WebXR code which is failing for ipfs:// urls even though |
@jbaicoianu can you share some examples to reproduce? |
@spylogsster sure. My original example is a bit complex, so I've hosted a copy of the official Immersive Web WebXR examples on IPFS, these should be much easier to work with. Observed Behavior: ipfs://bafybeihtmlwd67upnydc7zibr6zzx7hjeajniuiz6rdgeczxsokqkallqm/Main page loaded directly from IPFS, showing that the browser does implement WebXR: First example (ipfs://bafybeihtmlwd67upnydc7zibr6zzx7hjeajniuiz6rdgeczxsokqkallqm/immersive-vr-session.html) showing that WebXR reports that a device that supports Clicking "Enter VR" button results in error:
Expected behavior: https://ipfs.io/ipfs/bafybeihtmlwd67upnydc7zibr6zzx7hjeajniuiz6rdgeczxsokqkallqm/When the same button is clicked when loaded via https://ipfs.io/ the button text changes to "Exit VR", and (after some delay to load the assets) the headset displays the expected scene in the VR headset (not shown in screenshot) |
@jbaicoianu I see many errors on this page and I do not have the button |
Now, I think this issue can be closed, no longer relevant due to #37735 (big chunk of feature/web3/ipfs likely can be closed too) |
Similar to #13706 which is about the
ipns:
scheme, theipfs:
scheme is currently not considered 'safe' by the browser:This is not true.
Brave should give the user information about what exactly is safe in this context via the context menu, and show that this content is indeed secure when using the build-in ipfs node.
Brave version (brave://version info)
Brave: 1.19.86 Chromium: 88.0.4324.96 (Official Build) unknown (64-bit)
Revision: 68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{# 1784}
OS: Linux
CC: @lidel
The text was updated successfully, but these errors were encountered: