summaryrefslogtreecommitdiffstats
path: root/toolkit/components/antitracking/test/browser/blobPartitionPage.html
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/antitracking/test/browser/blobPartitionPage.html')
-rw-r--r--toolkit/components/antitracking/test/browser/blobPartitionPage.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/toolkit/components/antitracking/test/browser/blobPartitionPage.html b/toolkit/components/antitracking/test/browser/blobPartitionPage.html
new file mode 100644
index 0000000000..d0dd156bc5
--- /dev/null
+++ b/toolkit/components/antitracking/test/browser/blobPartitionPage.html
@@ -0,0 +1,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>