content/base/test/file_bug601803a.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Test for Bug 601803</title>
     5 <script type="application/javascript">
     6 function runTest() {
     7     document.domain = "example.org";
     8     var thrown = false;
     9     try {
    10         document.getElementById("frame").contentDocument.adoptNode(document.createTextNode("foo"));
    11     }
    12     catch (e) {
    13         thrown = true;
    14     }
    15     parent.postMessage(thrown, "*");
    16 }
    17 </script>
    18 </head>
    19 <body>
    20 <iframe id="frame" src="http://test1.example.org/tests/content/base/test/file_bug601803b.html" onload="runTest();"></iframe>
    21 </body>
    22 </html>

mercurial