3 <script src=
"../../../resources/js-test.js"></script>
7 description("Test that window.postMessage() to self is not leaking.");
9 window
.jsTestIsAsync
= true;
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
16 function postMessageToSelf() {
17 setInterval(function() {
18 window
.postMessage("msg", "*");
22 function receiveMessage(event
) {
23 testPassed("Received message " + event
.data
);
27 window
.addEventListener("message", receiveMessage
, false);