summaryrefslogtreecommitdiffstats
path: root/browser/components/resistfingerprinting/test/browser/file_hwconcurrency_blobcrossorigin_iframee.html
blob: 235a7651a80c73e25f2c4c6bb64720515f7f6646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<meta charset="utf8">
<script type="text/javascript">

  var s = `<html><script>
    let result = {
      hardwareConcurrency : navigator.hardwareConcurrency
    };
    window.parent.postMessage(result, "*");`;
  // eslint-disable-next-line
  s += `</` + `script></html>`;

  let b = new Blob([s], { type: "text/html" });
  let url = URL.createObjectURL(b);
  location.href = url;

</script>
<body>
<output id="result"></output>
</body>