ipfs / ipfs-companion

Browser extension that simplifies access to IPFS resources on the web
https://docs.ipfs.tech/install/ipfs-companion/
Creative Commons Zero v1.0 Universal
2.05k stars 325 forks source link

ipfs:// and ipns:// in Chromium work only in address bar #993

Open kovan opened 3 years ago

kovan commented 3 years ago

Describe the bug I have a website with ipns:// links. With Brave browser they work fine, but I can't get them to work with Chrome + IPFS Companion, even though I have enabled the mentioned option "Catch Unhandled IPFS Protocols" in IPFS Companion settings. I know this feature is experimental, but I think it is quite important for this to work properly.

Thanks for your work and regards.

To Reproduce Steps to reproduce the behavior:

  1. Enable "Catch Unhandled IPFS Protocols" in settings.
  2. Try to open an ipns:// link.
  3. Nothing happens

Expected behavior The link should be followed by the browser.

Desktop (please complete the following information):

lidel commented 3 years ago

ipns:// in Chromium works, but only when you enter it via address bar. It is not possible to use it in src or href attributes inside of HTML documents at the moment.

IPFS project collaborates with Igalia on this upstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=64100

When it is addressed, Companion will be able to register proper protocol handler, just like we do in Firefox.