content/base/test/file_bug601803a.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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