w3c / manifest

Manifest for web apps
https://www.w3.org/TR/appmanifest/
Other
658 stars 160 forks source link

More restrictive standalone mode #770

Closed madmoizo closed 3 months ago

madmoizo commented 5 years ago

I'm playing with Edge canary on desktop and standalone mode is congested with UA specific UI (translation button, password manager button, back button) image

https://www.w3.org/TR/appmanifest/#display-modes Problem is, the standalone description is very permissive:

the user agent will exclude standard browser UI elements such as an URL bar, but can include other system UI elements such as a status bar and/or system back button.

minimal-ui says:

This mode is similar to standalone, but provides the end-user with some means to access a minimal set of UI elements for controlling navigation (i.e., back, forward, reload, and perhaps some way of viewing the document's address). A user agent can include other platform specific UI elements, such as "share" and "print" buttons or whatever is customary on the platform and user agent.

On desktop, I expect a basic OS window from the standalone mode but the spec definition can lead to a minimal-ui-light mode. So, Is it possible to be more restrictive about the standalone mode ? For example, suggest that invasive UA controls (back button) remain hidden by default

aarongustafson commented 5 years ago

Is that translate button a plug-in?

madmoizo commented 5 years ago

@aarongustafson Not at all, basic Edge canary installation, but its display is probably conditional.

Edit: I already shared my concerns about it on Edge side https://techcommunity.microsoft.com/t5/Discussions/UI-in-standalone-mode/m-p/729716

marcoscaceres commented 5 years ago

@frlinw, W3C specs generally don't impose UI requirements on user agents (by design), as UI differences is what browsers mostly compete on. We (browser vendors) are still investigating how to best build UIs for installable web apps. I believe we even have a spec bug around requesting or getting rid of the back button in the UI. Bottom line is that we are still figuring this stuff out.

Nevertheless, no doubt the Edge Team (via @aarongustafson) appreciate your feedback - though please be mindful not to use words like "bloated", etc. A lot of thought goes into those UI decisions.

madmoizo commented 5 years ago

@marcoscaceres of course, I just wanted to clarify a possible overlap between standalone and minimal-ui which can be confusing for browser vendors too (all are not involved in the spec definition & intern discussions, right?)

As you probably noticed, english is not my native language, I had no intent to be rude, sorry for that. I'll pay more attention to the words used.

aarongustafson commented 5 years ago

@frlinw I suspect the translate icon appearing is a bug (I’m researching internally as I have not seen it myself). For standalone & minimal-ui, we (Edge) have been thinking about extras like Translate, plugins, etc. as things users may want to persist from the browser to their PWAs, but in the triple dot/ellipsis (…) menu rather than the toolbar.

madmoizo commented 5 years ago

@aarongustafson It's consistent with the in-browser address bar at least image Try the URL if you want to reproduce.

in the triple dot/ellipsis (…) menu rather than the toolbar.

It would be perfect that way

Anyway, Edgemium is great, keep up the good work. Easy app management is now a must-have for me image

madmoizo commented 5 years ago

After trying Twitter webapp, it seems password manager icon is conditional too. I don't understand why it doesn't hide after login on my own webapp. What is the rule ?

marcoscaceres commented 3 months ago

Going ahead and closing this one as reviewing it, it's specific to browser UI.... the spec can't really say what can and can't go into the browser UI, and in any mode, the browser may put whatever it likes into any menu bars, status bars, etc.