v152 ยท window shape

Clear custom shape

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.

Reset to the default rectangle

The explainer defines setShape([]) as the clear path. This is separate from applying a full-window rectangle because it removes the custom shape.

main
notch
Apply a preview shape or clear it.

code path

await window.chromeos.isolatedWebApp.setShape([]);

see also