summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/portals/resources/postmessage-referrer.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/portals/resources/postmessage-referrer.sub.html')
-rw-r--r--testing/web-platform/tests/portals/resources/postmessage-referrer.sub.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/portals/resources/postmessage-referrer.sub.html b/testing/web-platform/tests/portals/resources/postmessage-referrer.sub.html
new file mode 100644
index 0000000000..c3837dc79d
--- /dev/null
+++ b/testing/web-platform/tests/portals/resources/postmessage-referrer.sub.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<script>
+ let message = {
+ httpReferrer: '{{header_or_default(Referer, no-http-referrer)}}',
+ documentReferrer: document.referrer || 'no-document-referrer',
+ };
+ window.portalHost.postMessage(message);
+</script>