Bug 963278 - Delay focusing the input field until after resize events are done. r=ehsan

This commit is contained in:
Kartikaya Gupta 2014-02-05 17:43:20 -05:00
parent 3195471b3f
commit 6badf85139
2 changed files with 2 additions and 9 deletions

View File

@ -6,12 +6,5 @@
<body>
<input type="text">
<div style="height: 10000px;"></div>
<script>
addEventListener("load", function() {
opener.childLoaded();
}, false);
</script>
</body>
</html>

View File

@ -19,7 +19,7 @@ const TEST_URL = "/tests/layout/forms/test/bug564115_window.html";
addLoadEvent(function() {
var win = open(TEST_URL, "", "width=600,height=600");
window.childLoaded = function() {
SimpleTest.waitForFocus(function() {
var doc = win.document;
var input = doc.querySelector("input");
@ -44,7 +44,7 @@ addLoadEvent(function() {
});
}, 0);
}, 0);
};
}, win);
});
SimpleTest.waitForExplicitFinish();