Bug 1477610 - Make sure a resize during page load doesn't get mis-identified as a resize caused by a subsequent layout change. r=hiro

Differential Revision: https://phabricator.services.mozilla.com/D30416

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-05-09 03:56:58 +00:00
parent c681e36378
commit c9b2e53ef1

View File

@ -60,14 +60,14 @@
}
// Run the test after load to make sure any resize from a previous test
// doesn't interfere.
window.onload = function() {
// or from the load doesn't interfere.
window.onload = requestAnimationFrame(function() {
try {
runTest();
} finally {
done();
}
};
});
</script>
<div id="log"></div>
</body>