diff options
Diffstat (limited to 'browser/components/originattributes/test/browser/file_postMessageSender.html')
-rw-r--r-- | browser/components/originattributes/test/browser/file_postMessageSender.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/browser/components/originattributes/test/browser/file_postMessageSender.html b/browser/components/originattributes/test/browser/file_postMessageSender.html new file mode 100644 index 0000000000..ebdffb990f --- /dev/null +++ b/browser/components/originattributes/test/browser/file_postMessageSender.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Test page for always sending a message to its opener through postMessage</title> +</head> +<body> + <script> + window.onload = () => { + // The target origin is coming from the query string. + let targetOrigin = window.location.search.substring(1); + window.opener.postMessage("Message", targetOrigin); + }; + </script> +</body> +</html> |