mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-17 08:32:54 +00:00
The first time Document learns its viewport size, we now suppress firing of the resize event. This fixes an issue on multiple websites that were not expecting resize events to fire so early in the loading process.
12 lines
228 B
HTML
12 lines
228 B
HTML
<script>
|
|
var resizeCount = 0;
|
|
onresize = function() {
|
|
++resizeCount;
|
|
}
|
|
</script>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println("resize count: " + resizeCount);
|
|
})
|
|
</script>
|