Reputation: 11205
This is similar, but not duplicate of this question. In my situation, I am using FF 38.0.5(which is latest as of the time of writing this question).
As per MDN, it clearly says that
In Firefox 20 this attribute is only honored for links to resources with the same-origin.
Note that it says "In Firefox 20" and not "In Firefox 20 Onwards" So it should not be the case in firefox 38.0.5.
Actually I have created a mashup widget for a third party website, so all the anchor links are of different domains. Its like an embedded html frame.
If I go for the proposed solution in the above SO question's answer(which deals with only image files), I would have to put the content type of each file and that would be very cumbersome as we would have to consider n different types of files.
So is there a way to get round this problem so that the cross domain anchors work in firefox(as well as chrome)?
EDIT: In my case, the anchors are opening file in that frame instead of downloading that particular file.
Upvotes: 1
Views: 521
Reputation: 2057
It is a security issue if Firefox obeys download
attribute even cross-origin. There is a thorough discussion of this in https://bugzilla.mozilla.org/show_bug.cgi?id=676619 , notable with comments 34 and 35. So I believe the MDN wiki really means "since" Firefox 20.
Upvotes: 2