title: Fetch requests inside onClick abort when downloading a file in Firefox
body: <p>I'm trying to create a link which downloads a file and at the same time send a fetch request via <code>onClick</code> to notify a server that the file has been downloaded. </p>
  
  <p>The issue is that in Firefox, the fetch request is not sent and the error <code>TypeError: NetworkError when attempting to fetch resource.</code> appears in the console. It seems that downloading a file interrupts the fetch request in firefox for some reason. But it seems to work fine in chrome.</p>
  
  <p>Sample code here, try it in Firefox to see the error: <a href="https://codesandbox.io/s/anchor-onclick-download-fevtm?fontsize=14" rel="nofollow noreferrer">https://codesandbox.io/s/anchor-onclick-download-fevtm?fontsize=14</a></p>
  
  <p>I would like to ask why is this happening in Firefox and what could be an alternative solution to achieve the desired behavior.</p>
  
  <p>Adding <code>target="_blank"</code> will make this work, but I would like to do this behavior without opening a tab for UX reasons.</p>