summaryrefslogtreecommitdiffstats
path: root/browser/components/resistfingerprinting/test/browser/file_hwconcurrency_sandboxediframe_double_framee.html
blob: f4ea70e4661188326dc02b40b62a67f9660813b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<meta charset="utf8">
<body>
<output id="result"></output>
<script type="text/javascript">
    window.addEventListener("load", function listener() {
      parent.postMessage(["frame_ready"], "*");
    });
    window.addEventListener("message", function listener(event) {
      if (event.data[0] == "gimme") {
        let result = {
          hardwareConcurrency : navigator.hardwareConcurrency
        };

        parent.postMessage(["frame_response", result], "*");
      }
    });
</script>
</body>