diff options
Diffstat (limited to '')
-rw-r--r-- | browser/components/originattributes/test/browser/file_broadcastChanneliFrame.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/browser/components/originattributes/test/browser/file_broadcastChanneliFrame.html b/browser/components/originattributes/test/browser/file_broadcastChanneliFrame.html new file mode 100644 index 0000000000..6f4c484bc9 --- /dev/null +++ b/browser/components/originattributes/test/browser/file_broadcastChanneliFrame.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Page broadcast channel responder for first party isolation</title> +</head> +<body> + <div id="display" style="white-space:pre; font-family:monospace; display:inline;"></div> +<script type="text/javascript"> +let bc = new BroadcastChannel("testBroadcastChannel"); +bc.onmessage = function(e) { + window.parent.postMessage(e.data, "*"); +}; +</script> +</body> |