зеркало из https://github.com/mozilla/gecko-dev.git
Bug 546638 - Make test_bug465448.xul wait for the load event of the doc opened in another window. r=roc.
--HG-- extra : rebase_source : b9c636946cadc9331746ad2987f73b36b440a535
This commit is contained in:
Родитель
e38844b676
Коммит
bf8108009c
|
@ -13,9 +13,14 @@
|
|||
|
||||
<script><![CDATA[
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
var win = window.open("data:text/html,<div style='height:200px; width:100px;'>", "_blank", "width=600,height=600");
|
||||
var loadedCalled = false;
|
||||
var win = window.open("data:text/html,<body onload='window.opener.loaded()'><div style='height:200px; width:100px;'>", "_blank", "width=600,height=600");
|
||||
|
||||
function loaded() {
|
||||
if (!loadedCalled) {
|
||||
loadedCalled = true;
|
||||
return;
|
||||
}
|
||||
win.sizeToContent();
|
||||
win.sizeToContent();
|
||||
win.sizeToContent();
|
||||
|
|
Загрузка…
Ссылка в новой задаче