summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/bugs/iframe_bug440572.html
blob: c8d9f8fe2965b9f07cfc9d3cfad19b37bfc881ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<body>
<script>

var success = 0;

try {
  parent[name].success = 1;
  parent.postMessage(success ? "success" : "failure", "http://mochi.test:8888");
} catch (e) {
  parent.postMessage(e.toString(), "http://mochi.test:8888");
}

</script>
<p>Move on, nothing to see here...</p>
</body>
</html>