summaryrefslogtreecommitdiffstats
path: root/dom/cache/test/mochitest/message_receiver.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/cache/test/mochitest/message_receiver.html')
-rw-r--r--dom/cache/test/mochitest/message_receiver.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/cache/test/mochitest/message_receiver.html b/dom/cache/test/mochitest/message_receiver.html
new file mode 100644
index 000000000..82cb587c7
--- /dev/null
+++ b/dom/cache/test/mochitest/message_receiver.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<script>
+ navigator.serviceWorker.onmessage = function(e) {
+ window.parent.postMessage(e.data, "*");
+ };
+</script>