v152 · window shape
Minimum-size guard
These controls use the real proposed window.chromeos.isolatedWebApp.setShape() call when it exists. On ordinary pages they report the required ChromeOS IWA, unframed display mode, allowlist, and window-management permission prerequisites.
Validate the 10×10 minimum rectangle
The explainer requires at least one rectangle in a custom shape to meet a minimum size so apps cannot create invisible windows.
candidate
code path
if (width < 10 || height < 10) {
// Do not call setShape(); show a user-facing validation error.
}