Re: [w3ctag/design-reviews] WG New Spec: Additional Windowing Controls (Issue #1246)

jugglinmike left a comment (w3ctag/design-reviews#1246)

Thanks for submitting this to TAG for review. I'm responding on behalf of the TAG as [an associate](https://tag.w3.org/associates/). We acknowledge that there are multiple uses in the wild dealing with some of these issues in embedded applications, downstream browsers and so on.

## Permissions

We are somewhat struggling because the explainer merely says

> The window management permission will be required for the new JS APIs (window.maximize()/minimize()/restore()/setResizable(bool)).

However, there isn't significant enough information on how that permission is possibly granted, cached or revoked (I believe this is mentioned by issue #4 in your draft) to evaluate it very well.  It is hard to imagine that the additional window controls are a good fit for the "drive by web", but it is unclear if that is even the intent.  Does installing a PWA as `standalone` / `minimal-ui` automatically grant this permission? 

In any case, we're particularly concerned with the fact that `setResizable` allows authors to deny a familiar capability to users in what is potentially an unclear way (and also it's unclear if they can get it back).

That said it is considerably easier to understand and accept these in more specific contexts, much like how other windowing controls do today. For example, in kiosk mode or as IWAs, or via  Enterprise‑managed environments, or with native apps embedding WebViews. We do believe that it is worth, as much as possible, finding an agreeable path to avoid each of those from constantly re-solving the same problems with various degrees of quality, so we thank you for this effort and don't want this to sound fully discouraging.
 
## Accessibility

We do have some worries relating to accessibility.  Effectively, native controls are accessible and familiar in terms of keyboard shortcuts and other integrations.  The instant it's replaced, there is a real risk that this is all lost. Indeed the examples in the explainer themselves do not appear to account for this.

One possibly interesting solution we don't see in your list of considerations is whether or not window management actions could be exposed as UA‑defined `commands` rather than separate imperative JS APIs.  Since commands are designed with certain limits if used here they could provide built‑in accessibility semantics, keyboard routing, assistive‑technology integration, and platform‑consistent behavior. 

So, for example, with a fairly minor change it becomes something like...

```
<header id="titlebar">
  <div id="drag-region">
    <div id="window-controls">
      <button command="window-minimize"><img src="minimize.png" /></button>
      <button command="window-maximize"><img src="maximize.png" /></button>
      <button command="window-restore"><img src="restore.png" /></button>
      <button command="window-close"><img src="close.png" /></button>
    </div>
  </div>
</header>
```

This leaves open the question of failure detection/handling (e.g. if the permission is not granted or the OS blocks the operation). Since existing `command` values like `show-popover` offer an event that authors can listen to to detect success/failure, this approach may include a new event like `windowstatechange` that fires against `window` on success.

## Use-cases

In discussing an alternative, the explainer mentions the following use-case: "pressing a remote-app-specific hotkey like Ctrl+M to minimize the remote window." Without further detail, it's difficult to imagine when users might desire an app-specific shortcut for a system-wide capability such as "minimize window." Since the inability to support that use-case is presented as a deficiency of an alternative, elaborating on it could strengthen the proposal.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1246#issuecomment-7287352251
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1246/7287352251@github.com>

Received on Monday, 30 November 2026 18:07:09 UTC