mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
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:
parent
c681e36378
commit
c9b2e53ef1
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user