|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
|
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> |
|
4 <!-- |
|
5 https://bugzilla.mozilla.org/show_bug.cgi?id=67949 |
|
6 --> |
|
7 <window title="Mozilla Bug 67949" onload="doTest();" |
|
8 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
9 |
|
10 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> |
|
11 |
|
12 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=67949">Mozilla Bug 67949</a> |
|
14 <p id="display"></p> |
|
15 <div id="content" style="display: none"> |
|
16 <iframe id="contentframe" src="http://mochi.test:8888/tests/content/event/test/file_679494.html"></iframe> |
|
17 </div> |
|
18 </body> |
|
19 |
|
20 <script class="testbody" type="application/javascript;version=1.8"><![CDATA[ |
|
21 |
|
22 /* Test for bug 679494 */ |
|
23 function doTest() { |
|
24 SimpleTest.waitForExplicitFinish(); |
|
25 |
|
26 var w = document.getElementById("contentframe").contentWindow; |
|
27 w.addEventListener("message", function(e) { |
|
28 is("test", e.data, "We got the data without a compartment mismatch assertion!"); |
|
29 SimpleTest.finish(); |
|
30 }, false); |
|
31 w.postMessage("test", "*"); |
|
32 } |
|
33 |
|
34 ]]></script> |
|
35 |
|
36 </window> |