layout/base/crashtests/378325-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/crashtests/378325-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<html class="reftest-wait">
     1.5 +<head>
     1.6 +<title>Testcase bug - Crash [@ PresShell::FlushPendingNotifications] when removing window on focus and then reappearing again</title>
     1.7 +<script>
     1.8 +setTimeout('document.documentElement.className = ""', 500);
     1.9 +</script>
    1.10 +</head>
    1.11 +<body>
    1.12 +<iframe src="data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20tabindex%3D%221%22%20onfocus%3D%22top.doe2%28%29%3Bwindow.frameElement.parentNode.removeChild%28window.frameElement%29%3B%22%3E%0A%3Cscript%3E%0AsetTimeout%28function%28%29%7Bdocument.body.focus%28%29%7D%2C%20200%29%3B%0A%3C/script%3E%3C/body%3E%3C/html%3E" id="content"></iframe>
    1.13 +
    1.14 +<script>
    1.15 +function doe() {
    1.16 +  if (!document.getElementById('content')) {
    1.17 +  var y = document.createElement('iframe');
    1.18 +  y.id = 'content';
    1.19 +  y.src = 'data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20tabindex%3D%221%22%20onfocus%3D%22top.doe2%28%29%3Bwindow.frameElement.parentNode.removeChild%28window.frameElement%29%3B%22%3E%0A%3Cscript%3E%0AsetTimeout%28function%28%29%7Bdocument.body.focus%28%29%7D%2C%20200%29%3B%0A%3C/script%3E%3C/body%3E%3C/html%3E';
    1.20 +  document.body.appendChild(y);
    1.21 +  }
    1.22 +}
    1.23 + 
    1.24 + function doe2() {
    1.25 + setInterval(doe, 200); 
    1.26 + }
    1.27 +</script>
    1.28 +</body>
    1.29 +</html>

mercurial