1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/addon-sdk/source/test/fixtures/test-iframe-postmessage.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 + <head> 1.7 + <meta charset="UTF-8"> 1.8 + <script> 1.9 + window.addEventListener("message", function(msg) { 1.10 + parent.postMessage(msg.data, "*"); 1.11 + }); 1.12 + 1.13 + parent.postMessage({ 1.14 + first: "a string", 1.15 + second: ["an", "array"], 1.16 + third: {an: 'object'} 1.17 + }, '*'); 1.18 + </script> 1.19 + </head> 1.20 + <body> 1.21 + <h1>Inner iframe</h1> 1.22 + </body> 1.23 +</html>