summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/thirdparty/iframe2.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/serviceworkers/test/thirdparty/iframe2.html')
-rw-r--r--dom/serviceworkers/test/thirdparty/iframe2.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/serviceworkers/test/thirdparty/iframe2.html b/dom/serviceworkers/test/thirdparty/iframe2.html
new file mode 100644
index 0000000000..8013899195
--- /dev/null
+++ b/dom/serviceworkers/test/thirdparty/iframe2.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script>
+ window.parent.postMessage({
+ source: "iframe",
+ status: "networkresponse"
+ }, "*");
+ var w = new Worker('worker.js');
+ w.onmessage = function(evt) {
+ window.parent.postMessage({
+ source: 'worker',
+ status: evt.data,
+ }, '*');
+ };
+</script>