dom/base/crashtests/504224.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 class="reftest-wait">
michael@0 2 <head>
michael@0 3 <title>Crash [@ nsFocusManager::GetCommonAncestor], part 2</title>
michael@0 4 </head>
michael@0 5 <body>
michael@0 6 <iframe src="data:text/html;charset=utf-8,%3Chtml%3E%3Chead%3E%3C/head%3E%0A%3Cbody%20onunload%3D%22window.frameElement.parentNode.removeChild%28window.frameElement%29%22%20tabindex%3D%221%22%3E%0A%3Cscript%3E%0Adocument.body.focus%28%29%3B%0A%3C/script%3E%0A%3C/body%3E%0A%3C/html%3E" id="content"></iframe>
michael@0 7 <script>
michael@0 8 var src=document.getElementById('src');
michael@0 9 setInterval(function() {
michael@0 10 if (!document.getElementById('content')) {
michael@0 11 var x=document.createElement('iframe');
michael@0 12 x.src=src;
michael@0 13 x.id = 'content';
michael@0 14 document.body.appendChild(x);
michael@0 15 setTimeout(function() { window.focus(); document.documentElement.removeAttribute('class'); }, 100);
michael@0 16 } else
michael@0 17 window.frames[0].location.reload();
michael@0 18 }, 500);
michael@0 19 </script>
michael@0 20 </body>
michael@0 21 </html>
michael@0 22

mercurial