summaryrefslogtreecommitdiffstats
path: root/toolkit/components/antitracking/test/browser/blobPartitionPage.html
blob: d066bb360388694d9c66c602f71a4b800028c35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
  <head>
    <title>Blob URL Partitioning Test</title>
  </head>
  <body>
    <script>
        onmessage = e => {

        fetch(e.data)
            .then(response => {
                if (!response.ok) {
                    throw new Error();
                }
                return response.text();
            })
            .then(text => {
                parent.postMessage(text, "*");
            })
            .catch(() => {
                parent.postMessage("error", "*");
            });
        };
    </script>
  </body>
</html>