Re:Mozilla Project Fusion: Tor Integration into Firefox
by mook on Friday June 01, 2018 @03:28PM
(#17209110)
> You couldn't, until Firefox 59. Before that, protocol handlers were not allowed to handle links to Dat/IPFS resources [0].
You could, kind of, before Firefox 57 (or at least, at some point). Implementing nsIProtocolHandler/nsIChannel/etc. correctly was difficult (and probably not from JavaScript), and distribution problems meant nobody did it.
Re:Mozilla Project Fusion: Tor Integration into Firefox
by classichasclass on Friday June 01, 2018 @09:08PM
(#17211968)
No, not nobody. OverbiteFF was implemented in nearly exactly that fashion, and 100% JavaScript.
https://addons.mozilla.org/en-US/firefox/addon/overbiteff/
But, not possible anymore (without tricks).
You couldn't, until Firefox 59. Before that, protocol handlers were not allowed to handle links to Dat/IPFS resources [0].
And while I agree with your comment regarding the chicken and egg problem, there are still some technical issues. As the shadowbanned sibling comment says, extensions don't have access to UDP/TCP sockets, meaning that you will need to run a gateway on your machine. See e.g. what dat-fox [1] does.
[0]: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/ma...
[1]: https://github.com/sammacbeth/dat-fox