summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/serviceworkers/sanitize/frame.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/serviceworkers/sanitize/frame.html')
-rw-r--r--dom/workers/test/serviceworkers/sanitize/frame.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/workers/test/serviceworkers/sanitize/frame.html b/dom/workers/test/serviceworkers/sanitize/frame.html
new file mode 100644
index 000000000..b4bf7a1ff
--- /dev/null
+++ b/dom/workers/test/serviceworkers/sanitize/frame.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script>
+ fetch("intercept-this").then(function(r) {
+ if (!r.ok) {
+ return "FAIL";
+ }
+ return r.text();
+ }).then(function(body) {
+ parent.postMessage(body, '*');
+ });
+</script>