fune/browser/base/content/test/popups/popup_size.html
Matthias Camenzind 8a4636621a Bug 1793605 - Flush layout in window.open calls with specified size. r=emilio
Without flushing the layout, new windows appear to the opener to
initially open at the size of the opener instead of the specified size.

We can flush the layout unconditionally when we have a specified size
where we otherwise would make sure that the frame loader has been
reflowed at least once.

Thanks to Emilio for providing the changes to avoid tokenizing the
window features twice.

Differential Revision: https://phabricator.services.mozilla.com/D158584
2022-10-14 16:35:49 +00:00

16 lines
349 B
HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Page recording its size</title>
</head>
<body>
<script>
var initialSize = { width: innerWidth, height: innerHeight };
var loadSize;
onload = () => {
loadSize = { width: innerWidth, height: innerHeight };
};
</script>
</body>
</html>