Bug 563639 - [Debug] crashtest: intermittent "382778-1.html | timed out waiting for ..." probably caused by "targetDocument.body is null"; r=roc

--HG--
extra : rebase_source : 1c202e9ea2b44a764cd6e0753e8ba79e5c1542a4
This commit is contained in:
Ehsan Akhgari 2010-05-27 19:51:59 -04:00
Родитель 96c4d56f21
Коммит 714921c7a8
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -9,9 +9,8 @@ function init1()
targetIframe = document.createElementNS('http://www.w3.org/1999/xhtml', 'iframe');
targetIframe.src = "data:text/html,";
targetIframe.setAttribute("style", "width: 700px; height: 500px; border: 1px dotted green;");
targetIframe.addEventListener("load", init2, false);
document.body.appendChild(targetIframe);
setTimeout(init2, 100);
}
@ -27,7 +26,7 @@ function init2()
targetDocument.designMode = 'on';
setTimeout(boom, 100);
setTimeout(boom, 0);
}