зеркало из https://github.com/mozilla/gecko-dev.git
Bug 963278 - Delay focusing the input field until after resize events are done. r=ehsan
This commit is contained in:
Родитель
3195471b3f
Коммит
6badf85139
|
@ -6,12 +6,5 @@
|
|||
<body>
|
||||
<input type="text">
|
||||
<div style="height: 10000px;"></div>
|
||||
<script>
|
||||
|
||||
addEventListener("load", function() {
|
||||
opener.childLoaded();
|
||||
}, false);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче