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..2e0cfe5f32daac053c275f50008304ac35618254 |
--- /dev/null |
+++ b/content/test/data/post_message2.html |
@@ -0,0 +1,21 @@ |
+<html> |
+ |
+<head><title>Post message subframe 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> |