-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom protocol handlers do not work with first request on an empty browser session #33
Comments
are you testing with e10s on or off? |
Firefox Developer Edition 45 in |
Loose idea: IPFS Gateways are de-facto web apps, so perhaps we should just move to External Protocol Handlers? It should be easier to maintain and test, at least until WebExtensions provide all required APIs. |
About External Protocol Handlers, idk whether they provide the fine-grained control to interact with everything, i.e. loading any resources, overriding CORS, substituting stuff in the URL bar etc. I'm currently cooking up a solution that can replace practically everything with |
note that I tested without redirect since I currently have no local gateway running (it fries my firewall). so I used rewriting the |
Redirect should not impact this test (I get same result for ON and OFF). Which exact versions you mean by 'nightly' ( I manually enter |
dev edition: Firefox 45.0a2 20151220004007 i toggle e10s in about:preferences "enable multi-process firefox" and yes, I paste the link into the url bar and press enter.
possible, i'm not using jpm run, I do extension auto installer/jpm post to an existing profile. |
I don't see anything on Maybe you have a modified file locally? |
pinning logic probably should be moved into a separate module. |
- as suggested in #33 - removes `console.error` from comment #33 (comment)
Yup, moving it to As for the problem with protocol handlers, I finally managed to understand why it works for you and not for me: on a new browser session, only the first attempt fails. I use the same dev edition as you, but run it via When browser starts, I enter I think we have a lazy eval somewhere and that is why first attempt fails. |
Closing as it is no longer relevant: See #164 for more details |
TL;DR: just read #33 (comment)
I noticed that protocol handlers (
ipfs://
etc) do not work under FF 44.I thought it is related to #28 and this error from
lib/child-main.js
:BUT:
I 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.
I see three options:
I would appreciate if someone try to replicate this issue by running against specific Firefox versions:
and checking if
ipfs://QmTAsnXoWmLZQEpvyZscrReFzqxP3pvULfGVgpJuayrp1w
redirects to local gateway (for me, it redirects to Google search instead).The text was updated successfully, but these errors were encountered: