layout/base/crashtests/421432.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <html>
michael@0 2 <head>
michael@0 3 <title>Crash [@ DocumentViewerImpl::LoadComplete] with focusing and removing iframe on reload</title>
michael@0 4 </head>
michael@0 5 <body>
michael@0 6 <iframe id="content" onload="window.frames[0].focus()" style="width:1000px;height: 300px;"></iframe>
michael@0 7 <script>
michael@0 8 function doe2() {
michael@0 9 document.getElementById('content').src = 'data:text/html;charset=utf-8,%3Cscript%3Ewindow.addEventListener%28%27focus%27%2C%20function%28e%29%20%7Bwindow.frameElement.parentNode.removeChild%28window.frameElement%29%3B%7D%2C%20true%29%3C/script%3E';
michael@0 10 }
michael@0 11 setInterval(doe2, 500);
michael@0 12 </script>
michael@0 13 </body>
michael@0 14 </html>

mercurial