summaryrefslogtreecommitdiffstats
path: root/toolkit/components/antitracking/test/browser/blobPartitionPage.html
blob: d0dd156bc51e80fb72acdf4adb3da88e6e673250 (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(error => {
                parent.postMessage("error", "*");
            });
        };
    </script>
  </body>
</html>