js/xpconnect/crashtests/754311-iframe.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">
     5 function boom() {
     6   // Don't crash when transplanting wrappers with cyclic references.
     7   document.documentElement.dataset.xml = document.documentElement.dataset;
     8   document.open();
    10   // Tell the parent window that we're done.
    11   window.parent.allDone();
    12 }
    14 // This needs to do a round-trip through the event loop to work right.
    15 window.onload = function() { setTimeout(boom, 0); };
    17 </script>
    18 </head>
    19 <body>
    20 </body>
    21 </html>

mercurial