-
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
Right click upload via ipfs.util.addFromURL sometimes does not work #227
Comments
…ection This is a workaround until #227 gets a proper fix.
Note to self: |
Note to self - documentation for Browser compatibility table confirms it will be available in Firefox 57. |
I was thinking about this and I really hope there will be a better way to handle this than temporarily disabling TP for the entire browser. Added a comment with our use case to the Bug 1404610: Tracking protection should not apply on extension pages. |
I am still getting this error even when tracking protection is disabled |
Workaround until this issue is closed
Disable tracking protection in
about:config
:The Problem
Browserified
ipfs.util.addFromURL
sometimes fails with ambiguousXHR error
:It does not happen when I load extension via
web-ext
, but does occur with my regular instance when I right click on an image from Twitter, eg. https://pbs.twimg.com/profile_banners/752196928855744512/1468173187/1500x500Update 2017-03-27
I temporarily replaced
ipfs.util.addFromURL
with thin wrapper on top of manualfetch
:It enabled me to see the underlying problem.
Firefox is blocking request due to... Tracking protection.
This quite entertaining, given the fact that the image is already in browser's cache.
I'll see if it is possible to get data directly from DOM or local cache without tripping the protection.
If someone needs a workaround for
v2.0.0alpha2
, disable tracking protection inabout:config
:Update 2017-03-28
Neither
fetch
norXMLHttpRequest
work.I've found Mozilla Bug #1308640, which ended with FF 54 enabling bypass of Tracking Protection when add-on has explicit permission to URL.
The
<all_urls>
, which is used by the add-on, is implicit so it does not work.To make it work in FF 54 we would have to manually specify EVERY domain in existence
Update 2017-03-30
There is an open ticket to Bug 1345158 - Implement browser.privacy.trackingProtection API. If/when it lands, we could disable protection just for the instant that is used for fetching resource requested by user and then enabling it again.
The text was updated successfully, but these errors were encountered: