summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/infrastructure/urls/base-url/resources/send-back-base-url.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/infrastructure/urls/base-url/resources/send-back-base-url.html')
-rw-r--r--testing/web-platform/tests/html/infrastructure/urls/base-url/resources/send-back-base-url.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/infrastructure/urls/base-url/resources/send-back-base-url.html b/testing/web-platform/tests/html/infrastructure/urls/base-url/resources/send-back-base-url.html
new file mode 100644
index 0000000000..6fdf81d1db
--- /dev/null
+++ b/testing/web-platform/tests/html/infrastructure/urls/base-url/resources/send-back-base-url.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<script>
+ addEventListener('message', (event) => {
+ if (event.data == 'report baseURI')
+ event.source.postMessage(document.baseURI, event.origin);
+ });
+ parent.postMessage('loaded', '*');
+</script>