summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/siteIdentity/file_pdf_blob.html
blob: ff6ed659a252512da432652f9a0291346b4ebcbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
  <meta charset='utf-8'>
</head>
<body>
  <script>
    let blob = new Blob(["x"], { type: "application/pdf" });
    let blobURL = URL.createObjectURL(blob);

    let link = document.createElement("a");
    link.innerText = "PDF blob";
    link.target = "_blank";
    link.href = blobURL;
    document.body.appendChild(link);
  </script>
</body>
</html>