summaryrefslogtreecommitdiffstats
path: root/browser/components/resistfingerprinting/test/browser/file_hwconcurrency_sandboxediframe_double_framee.html
blob: 8a4373c7039b6041c1011b1c92e6d5b5cbac762e (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(event) {
      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>