protocol handler smoke-tests

Below are checks for protocol handler support defined in IPFS Addressing Spec.
Source: ipfs/in-web-browsers

Clicking on each link should result in the same content loading as HTTP equivalent:

  1. ipfs://QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR (CIDv0)
    https://ipfs.io/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
  2. ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi (CIDv1)
    https://ipfs.io/ipfs/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
  3. ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/wiki/Vincent_van_Gogh.html#Style_and_works
    https://ipfs.io/ipfs/bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/wiki/Vincent_van_Gogh.html#Style_and_works
  4. ipns://en.wikipedia-on-ipfs.org/wiki/Vincent_van_Gogh.html#Style_and_works
    https://ipfs.io/ipns/en.wikipedia-on-ipfs.org/wiki/Vincent_van_Gogh.html#Style_and_works

Open diagnostic page at ipfs://bafkreifik2tbj5esf74sf2qwft2x3vuxaqmthwh3d2qx6abpcroirqpt7i

It should self-report an unique Origin based on the URL authority component (baf..), as stated in RFC 2396.

This is prerequisite for secure sandbox provided by same-origin policy

Embedding via
<img src="ipfs://QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR" />

→ if you see this ipfs:// failed

..should produce the same result as:
<img src="https://ipfs.io/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR" />

→ if you see this http:// failed

Embedding via
<video src="ipfs://bafybeigwa5rlpq42cj3arbw27aprhjezhimhqkvhbb2kztjtdxyhjalr3q/big-buck-bunny_trailer.webm#t=5" >

..should produce the same result as:
<video src="https://ipfs.io/ipfs/bafybeigwa5rlpq42cj3arbw27aprhjezhimhqkvhbb2kztjtdxyhjalr3q/big-buck-bunny_trailer.webm#t=5" >

Fetching data from ipfs:// via XMLHttpRequest:

(fetched data will appear here)

..should produce same result as XMLHttpRequest to http:// gateway:

(fetched data will appear here)

Fetching data from ipfs:// via fetch:

(fetched data will appear here)

..should produce same result as fetch to a gateway over http://:

(fetched data will appear here)