1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/crashtests/504224.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<html class="reftest-wait"> 1.5 +<head> 1.6 +<title>Crash [@ nsFocusManager::GetCommonAncestor], part 2</title> 1.7 +</head> 1.8 +<body> 1.9 +<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> 1.10 +<script> 1.11 +var src=document.getElementById('src'); 1.12 +setInterval(function() { 1.13 + if (!document.getElementById('content')) { 1.14 + var x=document.createElement('iframe'); 1.15 + x.src=src; 1.16 + x.id = 'content'; 1.17 + document.body.appendChild(x); 1.18 + setTimeout(function() { window.focus(); document.documentElement.removeAttribute('class'); }, 100); 1.19 + } else 1.20 + window.frames[0].location.reload(); 1.21 +}, 500); 1.22 +</script> 1.23 +</body> 1.24 +</html> 1.25 +