summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview/src/androidTest/assets/www/download.html
blob: 45d71a410c674ef06b10d08ab3d8bdc98567c43a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <script>
      const blob = new Blob(["Downloaded Data"], {type: "text/plain"});
      const element = document.createElement("a");
      element.href = URL.createObjectURL(blob);
      element.download = "download.txt";
      element.style.display = "none";
      document.body.appendChild(element);
      element.click();
    </script>
  </body>
</html>