Steps to reproduce & Expected behavior:
When opening a popup window with window.open
, the popup window doesn't respect the windowFeatures
parameter.
A small reproducing example below: I would expect that clicking the button would open a popup window with the exact specified dimensions.
<body>
<button>Open popup</button>
<script>
document.querySelector("button").addEventListener("click", () => window.open("about:blank", null, "popup,height=200,width=300"));
</script>
</body>
I realize that this is probably something that the browser can just declare that the browser doesn't support that, but I found while using Orion that more than a bunch of sites that uses popups does expect it to have the exact size that the site declared.
For reference, Safari 15.3(17612.4.9.1.5) creates the window and includes the title bar in the dimensions (i.e. opening a 300-by-200 window creates a 300-by-172 viewport with a 28px title bar), while Google Chrome 98.0.4758.80 creates the window without including the title & address bar in dimensions (i.e. the same situation creates a 300-by-200 viewport). If this is something that the Orion developers can choose freely (both equally have the same load), I would like if Orion goes with the Chrome-like behavior: almost all sites that do require this pixel-perfect behavior is optimized for Chrome, almost always creating a small amount of overflow in Safari.
Orion, OS version; hardware type:
I'm using Orion 0.99.112-beta (WebKit 614.1.1) with macOS Monterey 12.2 (21D49), testing on a Apple Silicon MacBook Pro (14" M1 Max).