dom/tests/mochitest/bugs/iframe_bug440572.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/bugs/iframe_bug440572.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +<html>
     1.5 +<body>
     1.6 +<script>
     1.7 +
     1.8 +var success = 0;
     1.9 +
    1.10 +try {
    1.11 +  parent[name].success = 1;
    1.12 +} catch (e) {
    1.13 +  parent.postMessage(e, "http://mochi.test:8888");
    1.14 +}
    1.15 +
    1.16 +parent.postMessage(success ? "success" : "failure", "http://mochi.test:8888");
    1.17 +</script>
    1.18 +<p>Move on, nothing to see here...</p>
    1.19 +</body>
    1.20 +</html>

mercurial