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

var success = 0;

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

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