dom/tests/mochitest/bugs/grandchild_bug260264.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html>
     2   <head>
     3     <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     4     <script type="application/javascript" src="utils_bug260264.js"></script>
     5   </head>
     6   <body>
     7     <a id="nested link" href="javascript:(function(){})()">nested link</a>
     8     <script type="application/javascript">
     9       var event = location.hash.split("#").pop();
    10       send(document.getElementById("nested link"), event, function() {
    11         var popup = window.open("http://example.com"),
    12             grandparent = window.open("", "parent260264");
    13         try { grandparent.report(popup) }
    14         finally { popup && popup.close() }
    15       });
    16     </script>
    17   </body>
    18 </html>

mercurial