Sometimes happens that the asker edits the question at the same time as you make an answer.
Example. Difference between question have been edited and the answer have been posted is 20 seconds. And the edit is almost equal to the answer.
Of course, if the question has already contained this point, it would be stupid to post such answer. But if the answer has been prepared and posted - what should be done with it? Should it be deleted? If it's not deleted, should it be downvoted? Remember it was written when the question didn't contain corresponding information.
More about the example.
My answer is:
Remove this line
window.URL.revokeObjectURL(link.href);
Seems like you are disposing url before it is used for download.
The question edit is adding of
Issue seems related to (as if you comment it out works):
window.URL.revokeObjectURL(link.href);
What is the reasons for this behavior on FF? Should I omit window.URL.revokeObjectURL() at all;
The answer is still relevant, but seems strange...