Skip to content

Commit

Permalink
Bug 1477610 - Make sure a resize during page load doesn't get mis-ide…
Browse files Browse the repository at this point in the history
…ntified 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
  • Loading branch information
theres-waldo committed May 9, 2019
1 parent c681e36 commit c9b2e53
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ <h4>
}

// 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>
Expand Down

0 comments on commit c9b2e53

Please sign in to comment.