Index: content/test/data/post_message2.html |
diff --git a/content/test/data/post_message2.html b/content/test/data/post_message2.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..14cc4e4736974ce0f7a935fa8700b1ca8e24c201 |
--- /dev/null |
+++ b/content/test/data/post_message2.html |
@@ -0,0 +1,21 @@ |
+<html> |
+ |
+<head><title>Post message tests</title> |
+<script> |
+ function postToOpenerFrame(msg, origin) { |
+ window.opener.frames[0][1].postMessage(msg, origin); |
+ return true; |
+ } |
+ |
+ window.addEventListener("message", messageReceived, false); |
+ |
+ function messageReceived(event) { |
+ // Change the title to generate a notification. |
+ document.title = event.data; |
+ } |
+</script> |
+</head> |
+ |
+<iframe id="frame1" src="frame_tree/1-1.html"></iframe> |
+ |
+</html> |