protocol.tentative.https.html (791B)
1 <!DOCTYPE html> 2 <meta charset='utf-8'> 3 <title>protocol handlers</title> 4 5 <script src='/resources/testharness.js'></script> 6 <script src='/resources/testharnessreport.js'></script> 7 8 <script> 9 // This should be merged into protocol.https.html when/if 10 // https://github.com/whatwg/html/pull/5482 is approved. 11 [ 12 'cabal', 13 'dat', 14 'did', 15 'dweb', 16 'ethereum', 17 'hyper', 18 'ipfs', 19 'ipns', 20 'ssb', 21 ].forEach(scheme => { 22 test(() => { 23 navigator.registerProtocolHandler(scheme, location.href + '/%s', "foo"); 24 }, 'registerProtocolHandler: overriding the "' + scheme + '" protocol should work'); 25 26 test(() => { 27 navigator.unregisterProtocolHandler(scheme, location.href + '/%s'); 28 }, 'unregisterProtocolHandler: overriding the "' + scheme + '" protocol should work'); 29 }); 30 </script>