Open markg85 opened 1 year ago
cc @cypt4 – this sounds like an easy fix, hide "IPFS" button if /ipfs/cid
is not a valid CID.
We need to be smarter about /ipns/
too, hide the button if id
from /ipns/id
is not a valid CID or DNSLink (or at least DNS name).
Description
It looks like brave thinks URL's with
/ipfs/
in it are IPFS urls. That's not really correct. I noticed this on https://github.com/ipfs/ where i was redirected to ipfs://... which then doesn't work at all.I currently just disabled ipfs completely as this url detection makes it hard for me to visit github as ipfs dev..
Steps to Reproduce
If you disable IPFS you can see brave "thinks" that github page is an ipfs page:![image](https://user-images.githubusercontent.com/49061/215777067-825966e8-283a-4b48-9ff5-efa879b5c86f.png)
Actual result:
Brave redirects to ipfs://... on pages that aren't IPFS.
Expected result:
Don't redirect! Don't even detect IPFS in this page.
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
1.47.186 Chromium: 109.0.5414.119 (Official Build) (64-bit)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information: