content/base/test/file_bug601803a.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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