{"action":"created","issue":{"url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/issues/33","labels_url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/issues/33/comments","events_url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/issues/33/events","html_url":"https://github.com/lidel/ipfs-firefox-addon/issues/33","id":123157359,"number":33,"title":"Custom protocol handlers do not work","user":{"login":"lidel","id":157609,"avatar_url":"https://avatars.githubusercontent.com/u/157609?v=3","gravatar_id":"","url":"https://api.github.com/users/lidel","html_url":"https://github.com/lidel","followers_url":"https://api.github.com/users/lidel/followers","following_url":"https://api.github.com/users/lidel/following{/other_user}","gists_url":"https://api.github.com/users/lidel/gists{/gist_id}","starred_url":"https://api.github.com/users/lidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidel/subscriptions","organizations_url":"https://api.github.com/users/lidel/orgs","repos_url":"https://api.github.com/users/lidel/repos","events_url":"https://api.github.com/users/lidel/events{/privacy}","received_events_url":"https://api.github.com/users/lidel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-20T12:28:18Z","updated_at":"2015-12-20T14:26:48Z","closed_at":null,"body":"I noticed that protocol handlers (`ipfs://` etc) do not work under FF 44.  \r\n\r\nI thought it is related to #28 and this error from `lib/child-main.js`:\r\n\r\n```\r\nconsole.error: \r\n  Message: Module `@test/options` is not found at resource://gre/modules/commonjs/@test/options.js\r\n  Stack:\r\n    @resource://gre/modules/commonjs/sdk/test/options.js:10:17\r\n@resource://gre/modules/commonjs/sdk/addon/window.js:15:17\r\n@resource://gre/modules/commonjs/sdk/net/xhr.js:12:24\r\n@resource://gre/modules/commonjs/sdk/request.js:17:56\r\n@resource://ipfs-firefox-addon-at-lidel-dot-org/lib/gateways.js:41:17\r\n@resource://ipfs-firefox-addon-at-lidel-dot-org/lib/protocols.js:8:10\r\n@resource://ipfs-firefox-addon-at-lidel-dot-org/lib/child-main.js:3:15\r\n@resource://gre/modules/commonjs/sdk/remote/child.js:81:3\r\nemitOnObject@resource://gre/modules/commonjs/sdk/event/core.js:112:9\r\nemit@resource://gre/modules/commonjs/sdk/event/core.js:89:38\r\nmessageReceived@resource://gre/modules/commonjs/sdk/remote/child.js:67:37\r\n```\r\nBUT:\r\n\r\nI reverted to v1.3.1 and _the same code_ does not work with unsigned add-on under Developer's FF 44, but *does work* with signed one and  Official FF 42 (the one from Mozilla addon store). It also works fine with unsigned add-on and older FF 40.\r\n\r\nI see three options:\r\n\r\n- there is no bug, there is something wrong with my local  setup\r\n- custom protocol handlers do not work / require some additional code in FF > 42\r\n- custom protocol handlers do not work when extension is unsigned\r\n\r\nI would appreciate if someone try to replicate this issue by running against specific Firefox versions:\r\n\r\n    jpm -b /path/to/firefox-45.0a2/firefox run\r\n\r\nand checking if `ipfs://QmTAsnXoWmLZQEpvyZscrReFzqxP3pvULfGVgpJuayrp1w` redirects to local gateway (for me, it redirects to Google search instead)."},"comment":{"url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/issues/comments/166122740","html_url":"https://github.com/lidel/ipfs-firefox-addon/issues/33#issuecomment-166122740","issue_url":"https://api.github.com/repos/lidel/ipfs-firefox-addon/issues/33","id":166122740,"user":{"login":"lidel","id":157609,"avatar_url":"https://avatars.githubusercontent.com/u/157609?v=3","gravatar_id":"","url":"https://api.github.com/users/lidel","html_url":"https://github.com/lidel","followers_url":"https://api.github.com/users/lidel/followers","following_url":"https://api.github.com/users/lidel/following{/other_user}","gists_url":"https://api.github.com/users/lidel/gists{/gist_id}","starred_url":"https://api.github.com/users/lidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidel/subscriptions","organizations_url":"https://api.github.com/users/lidel/orgs","repos_url":"https://api.github.com/users/lidel/repos","events_url":"https://api.github.com/users/lidel/events{/privacy}","received_events_url":"https://api.github.com/users/lidel/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T14:26:48Z","updated_at":"2015-12-20T14:26:48Z","body":"Loose idea: IPFS Gateways are de-facto web apps, so perhaps we should just move to [External Protocol Handlers](https://stackoverflow.com/a/24910047)?\r\n\r\nIt should be easier to maintain and test, at least until [WebExtensions](https://wiki.mozilla.org/WebExtensions) provide all required APIs."}}