content/base/test/file_bug601803a.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/test/file_bug601803a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <title>Test for Bug 601803</title>
     1.8 +<script type="application/javascript">
     1.9 +function runTest() {
    1.10 +    document.domain = "example.org";
    1.11 +    var thrown = false;
    1.12 +    try {
    1.13 +        document.getElementById("frame").contentDocument.adoptNode(document.createTextNode("foo"));
    1.14 +    }
    1.15 +    catch (e) {
    1.16 +        thrown = true;
    1.17 +    }
    1.18 +    parent.postMessage(thrown, "*");
    1.19 +}
    1.20 +</script>
    1.21 +</head>
    1.22 +<body>
    1.23 +<iframe id="frame" src="http://test1.example.org/tests/content/base/test/file_bug601803b.html" onload="runTest();"></iframe>
    1.24 +</body>
    1.25 +</html>

mercurial