diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:18:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:18:09 +0000 |
commit | 0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3 (patch) | |
tree | 673eec8dca4c4cfc5125dd4447f6608e589fa6b9 /layout/generic/test/file_bug514732_window.xhtml | |
parent | Adding debian version 115.8.0esr-1~deb12u1. (diff) | |
download | firefox-esr-0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3.tar.xz firefox-esr-0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3.zip |
Merging upstream version 115.9.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/generic/test/file_bug514732_window.xhtml')
-rw-r--r-- | layout/generic/test/file_bug514732_window.xhtml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/layout/generic/test/file_bug514732_window.xhtml b/layout/generic/test/file_bug514732_window.xhtml index 094ff9ab23..5d7342776f 100644 --- a/layout/generic/test/file_bug514732_window.xhtml +++ b/layout/generic/test/file_bug514732_window.xhtml @@ -5,7 +5,7 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="600" height="600" - onload="setTimeout(nextTest,0);" + onload="setTimeout(startTests,0);" title="bug 514732 test"> <script type="application/javascript"><![CDATA[ @@ -75,7 +75,20 @@ finish(); } - + + function startTests() { + // Flush layout in outer and inner documents (in that order), to be sure + // our TestWindow's initial about:blank document doesn't have any + // pending reflows. (If we leave these pending reflows un-flushed, then + // they might happen after we've set up our MozScrolledAreaChanged + // event-listener; and that would confuse our test logic and lead to + // timeouts and test-failures.) + document.documentElement.offsetHeight; + TestWindow.getDocument().documentElement.offsetHeight; + + // Kick off the first test via the generator-iterator. + nextTest(); + } ]]></script> <browser type="content" primary="true" flex="1" id="content" src="about:blank"/> |